From 30a145599c353865f7d41520b644462bd7f33f9d Mon Sep 17 00:00:00 2001 From: Timothy Stiles Date: Sat, 26 Sep 2020 22:18:19 +1000 Subject: [PATCH] fix a graphical undoing bug in Turn-Based Mode turns out we were smuggling pending_undo to previous moves. aha! --- js/game.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/game.js b/js/game.js index 88a97e9..45e7754 100644 --- a/js/game.js +++ b/js/game.js @@ -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();