Show checkmate message without check.
This commit is contained in:
parent
391257e8d7
commit
d47bef97f0
@ -768,7 +768,7 @@ const INTERFACE = {
|
||||
if(GAME_DATA.state.code == GAME.Const.State.Resign) {
|
||||
ctx.fillStyle = INTERFACE.Color.HintCheck;
|
||||
message = LANG("resign");
|
||||
} else if(GAME_DATA.state.check != 0) {
|
||||
} else if(GAME_DATA.state.check != 0 || GAME_DATA.state.code == GAME.Const.State.Checkmate) {
|
||||
ctx.fillStyle = INTERFACE.Color.HintCheck;
|
||||
if(GAME_DATA.state.code == GAME.Const.State.Checkmate) {
|
||||
message = LANG("checkmate");
|
||||
|
Loading…
x
Reference in New Issue
Block a user