fix a graphical undoing bug in Turn-Based Mode

turns out we were smuggling pending_undo to previous moves. aha!
This commit is contained in:
Timothy Stiles 2020-09-26 22:18:19 +10:00
parent 5c6cd01b39
commit 30a145599c

View File

@ -982,7 +982,9 @@ export class Level {
}
undo() {
//ok, actually we're not doing an in-progress move after all.
this.waiting_for_input = false;
this.pending_undo = [];
this.aid = Math.max(1, this.aid);
let entry = this.undo_stack.pop();