projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Advance on Chakart, fix Football GenRandInitFen() + try fixing newly introduced bug...
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
6261139
..
2beb10c
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-753,8
+753,8
@@
export default {
// Got opponent infos about last move
this.gotLastate = true;
this.lastate = data.data;
// Got opponent infos about last move
this.gotLastate = true;
this.lastate = data.data;
- if (this.lastate.movesCount > this.gotMoveIdx)
- this.gotMoveIdx = this.lastate.movesCount;
+ if (this.lastate.movesCount
- 1
> this.gotMoveIdx)
+ this.gotMoveIdx = this.lastate.movesCount
- 1
;
if (this.game.rendered)
// Game is rendered (Board component)
this.processLastate();
if (this.game.rendered)
// Game is rendered (Board component)
this.processLastate();
@@
-1273,7
+1273,7
@@
console.log(data.data);
this.$nextTick(() => {
this.game.rendered = true;
// Did lastate arrive before game was rendered?
this.$nextTick(() => {
this.game.rendered = true;
// Did lastate arrive before game was rendered?
- if (this.lastate) this.processLastate();
+ if (
!!
this.lastate) this.processLastate();
});
if (this.lastateAsked) {
this.lastateAsked = false;
});
if (this.lastateAsked) {
this.lastateAsked = false;