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:
parent
5c6cd01b39
commit
30a145599c
@ -982,7 +982,9 @@ export class Level {
|
|||||||
}
|
}
|
||||||
|
|
||||||
undo() {
|
undo() {
|
||||||
|
//ok, actually we're not doing an in-progress move after all.
|
||||||
this.waiting_for_input = false;
|
this.waiting_for_input = false;
|
||||||
|
this.pending_undo = [];
|
||||||
this.aid = Math.max(1, this.aid);
|
this.aid = Math.max(1, this.aid);
|
||||||
|
|
||||||
let entry = this.undo_stack.pop();
|
let entry = this.undo_stack.pop();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user