summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-12-10 17:35:46 +0100
committerTor Andersson <tor@ccxvii.net>2024-12-10 17:35:46 +0100
commitf7f10fb376e1019b2c49d6e1fac1b35031bf00b3 (patch)
tree671e8fd142f2bda0cd68ab00a3f88a90c24a92bc /rules.js
parent1e411905bf832ca8e59f3c1ade7f26952187d474 (diff)
downloadmaria-f7f10fb376e1019b2c49d6e1fac1b35031bf00b3.tar.gz
Also clear undo when clearing checkpoint state.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 2cebacf..ca03f0e 100644
--- a/rules.js
+++ b/rules.js
@@ -4935,7 +4935,6 @@ states.political_card_done = {
view.actions.end_political_card = 1
},
end_political_card() {
- push_undo()
end_execute_political_card()
},
}
@@ -7570,6 +7569,7 @@ function restore_checkpoint() {
}
function clear_checkpoint() {
+ clear_undo()
delete game.restart
}