projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'update'
[vchess.git]
/
client
/
src
/
views
/
Game.vue
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 (!!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);
GameStorage.update(this.gameRef.id, {drawOffer: ""});
}
this.$set(this.game, "moveToPlay", data.move);