summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-01-15 16:58:40 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-15 16:58:40 +0100
commit4ea2ea881e307e2b6f0897f62eabed4deb939b0d (patch)
tree7585b464ac828a0ab8b51f221f98d5e29d0e24af
parent444d399b00583ff3cb70b423308d6fc0431c8621 (diff)
downloadvotes-for-women-4ea2ea881e307e2b6f0897f62eabed4deb939b0d.tar.gz
Add undo step when clicking next in place on top/bottom of draw.
-rw-r--r--rules.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 3239bb7..39f941c 100644
--- a/rules.js
+++ b/rules.js
@@ -3224,6 +3224,7 @@ states.vm_place_any_on_top_of_draw = {
game.vm.on_top.unshift(c)
},
next() {
+ push_undo()
if (game.vm.draw.length > 0)
game.state = "vm_place_any_on_bottom_of_draw"
else