puzzle: show check even on revert

This commit is contained in:
Thibault Duplessis 2014-10-21 01:26:19 +02:00
parent 078a34dbd3
commit e4a33637a8

View file

@ -47,10 +47,12 @@ module.exports = function(cfg, router, i18n) {
fen: this.data.chess.fen(),
lastMove: chess.lastMove(this.data.chess),
turnColor: this.data.puzzle.color,
check: null,
movable: {
dests: chess.dests(this.data.chess)
}
});
if (this.data.chess.in_check()) this.chessground.setCheck();
}.bind(this);
this.userFinalizeMove = function(move, newProgress) {