summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-04-30 00:38:23 +0200
committerTor Andersson <tor@ccxvii.net>2025-04-30 00:38:23 +0200
commit2a8376a060fe05a66075457476624a5453cadc39 (patch)
treefaaebc8d203911b03976e1196f9d3cc7ec89f67e
parentc1039040ad1565968456b8c42d668c2624104ca9 (diff)
downloadpax-pamir-2a8376a060fe05a66075457476624a5453cadc39.tar.gz
Clear undo at game over.
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index e8d0897..0b9fe5b 100644
--- a/rules.js
+++ b/rules.js
@@ -3123,6 +3123,7 @@ function goto_pause_game_over() {
if (game.undo && game.undo.length > 0 && !is_winner) {
game.state = 'pause_game_over'
} else {
+ clear_undo()
game.state = 'game_over'
game.active = 5
}
@@ -3135,6 +3136,7 @@ states.pause_game_over = {
gen_action('end_game')
},
end_game() {
+ clear_undo()
game.state = 'game_over'
game.active = 5
}