projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix incheck by pawns for checkered
[vchess.git]
/
public
/
javascripts
/
components
/
game.js
diff --git
a/public/javascripts/components/game.js
b/public/javascripts/components/game.js
index
bd3a187
..
ab86057
100644
(file)
--- a/
public/javascripts/components/game.js
+++ b/
public/javascripts/components/game.js
@@
-549,7
+549,7
@@
Vue.component('my-game', {
{
const oppCol = this.vr.turn;
const lastMove = moves[moves.length-1];
- this.vr.undo(lastMove
, "ingame"
);
+ this.vr.undo(lastMove);
this.incheck = this.vr.getCheckSquares(lastMove, oppCol);
this.vr.play(lastMove, "ingame");
}