Prevent undo after game completion.
This commit is contained in:
parent
6e29ae42e8
commit
180a782eff
@ -398,7 +398,7 @@ const INTERFACE = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let b_undo = document.getElementById("button-undo");
|
let b_undo = document.getElementById("button-undo");
|
||||||
if(GAME_DATA.turn == 0 || INTERFACE_DATA.Ui.request_undo == 1) {
|
if(GAME_DATA.turn == 0 || GAME_DATA.state.code != 0 || INTERFACE_DATA.Ui.request_undo == 1) {
|
||||||
b_undo.setAttribute("disabled", "");
|
b_undo.setAttribute("disabled", "");
|
||||||
b_undo.removeAttribute("class");
|
b_undo.removeAttribute("class");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user