projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
better diagrams in rules pages + some improvements to pieces images
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
4541031
..
1753df0
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-252,9
+252,6
@@
export default {
},
// NOTE: some redundant code with Hall.vue (mostly related to people array)
created: function() {
},
// NOTE: some redundant code with Hall.vue (mostly related to people array)
created: function() {
- if (this.$route.query["focus"] === "false")
- // Focus explicitely set to false from Hall (live game)
- this.focus = false;
this.atCreation();
},
mounted: function() {
this.atCreation();
},
mounted: function() {
@@
-749,6
+746,9
@@
export default {
if (!this.game || !this.game.moves) this.lastateAsked = true;
else this.sendLastate(data.from);
break;
if (!this.game || !this.game.moves) this.lastateAsked = true;
else this.sendLastate(data.from);
break;
+ // TODO: possible bad scenario: reload page while oppponent sends a
+ // move => get both lastate and newmove, process both, add move twice.
+ // Confirm scenario? Fix?
case "lastate": {
// Got opponent infos about last move
this.gotLastate = true;
case "lastate": {
// Got opponent infos about last move
this.gotLastate = true;