projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare images for Knightmate variant. Fix lastMove.fen early assignment (when =...
[vchess.git]
/
client
/
src
/
components
/
BaseGame.vue
diff --git
a/client/src/components/BaseGame.vue
b/client/src/components/BaseGame.vue
index
5fbc257
..
100f7ef
100644
(file)
--- a/
client/src/components/BaseGame.vue
+++ b/
client/src/components/BaseGame.vue
@@
-359,6
+359,9
@@
export default {
new Audio("/sounds/move.mp3").play().catch(() => {});
if (this.vr.turn != initurn) {
// Turn has changed: move is complete
new Audio("/sounds/move.mp3").play().catch(() => {});
if (this.vr.turn != initurn) {
// Turn has changed: move is complete
+ if (!smove.fen)
+ // NOTE: only FEN of last sub-move is required (thus setting it here)
+ smove.fen = this.vr.getFen();
this.inMultimove = false;
const score = this.vr.getCurrentScore();
if (score != "*") {
this.inMultimove = false;
const score = this.vr.getCurrentScore();
if (score != "*") {
@@
-405,7
+408,6
@@
export default {
if (received && this.cursor < this.moves.length - 1)
this.gotoEnd();
playMove();
if (received && this.cursor < this.moves.length - 1)
this.gotoEnd();
playMove();
- this.lastMove.fen = this.vr.getFen();
this.emitFenIfAnalyze();
},
cancelCurrentMultimove: function() {
this.emitFenIfAnalyze();
},
cancelCurrentMultimove: function() {