projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f298ad
)
'update'
author
Benjamin Auder
<benjamin.auder@somewhere>
Fri, 7 Feb 2020 14:15:33 +0000
(15:15 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Fri, 7 Feb 2020 14:15:33 +0000
(15:15 +0100)
client/src/views/Game.vue
patch
|
blob
|
blame
|
history
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
799f5ab
..
baa9ae1
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-256,7
+256,8
@@
export default {
if (!!data.move.cancelDrawOffer) //opponent refuses draw
{
this.drawOffer = "";
- if (this.game.type == "live") //corr games: reset by player who played
+ // NOTE for corr games: drawOffer reset by player in turn
+ if (this.game.type == "live" && !!this.game.mycolor)
GameStorage.update(this.gameRef.id, {drawOffer: ""});
}
this.$set(this.game, "moveToPlay", data.move);