projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Dynamo variant
[vchess.git]
/
client
/
src
/
components
/
BaseGame.vue
diff --git
a/client/src/components/BaseGame.vue
b/client/src/components/BaseGame.vue
index
1996ded
..
9c8cadf
100644
(file)
--- a/
client/src/components/BaseGame.vue
+++ b/
client/src/components/BaseGame.vue
@@
-441,7
+441,9
@@
export default {
const initurn = this.vr.turn;
(function executeMove() {
const smove = move[moveIdx++];
const initurn = this.vr.turn;
(function executeMove() {
const smove = move[moveIdx++];
- if (animate) {
+ // NOTE: condition "smove.start.x >= 0" required for Dynamo,
+ // because second move may be empty.
+ if (animate && smove.start.x >= 0) {
self.animateMove(smove, () => {
playSubmove(smove);
if (moveIdx < move.length)
self.animateMove(smove, () => {
playSubmove(smove);
if (moveIdx < move.length)