X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fbase_rules.js;h=15609eb16dd29e2bfcbaa263c9df93b19c9c5a87;hp=bcd73b1417584d177b7a4aa8a1a9c65112c80813;hb=9d54ab8900b69876c3249b4ed1bfa355dccb7f97;hpb=6274a54591714db8988683c0e3fe69937e61c672 diff --git a/client/src/base_rules.js b/client/src/base_rules.js index bcd73b14..15609eb1 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -1062,8 +1062,6 @@ export const ChessRules = class ChessRules move.flags = JSON.stringify(this.aggregateFlags()); //save flags (for undo) if (V.HasEnpassant) this.epSquares.push( this.getEpSquare(move) ); - if (!move.color) - move.color = this.turn; //for interface V.PlayOnBoard(this.board, move); this.turn = V.GetOppCol(this.turn); this.movesCount++;