summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-16 12:50:43 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-16 12:50:43 +0200
commitc276fc6fc72f735943b9893bd1f31acc08984ffa (patch)
tree06922ee3bd69b96c5af498618e1e9eaf291072c2
parent8492a7bc6fb763d12c8669e6bf4e1f08d595e6fd (diff)
downloadplantagenet-c276fc6fc72f735943b9893bd1f31acc08984ffa.tar.gz
fix double push_undo when marching
-rw-r--r--rules.js1
-rw-r--r--rules.ts1
2 files changed, 0 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 6025895..390ea21 100644
--- a/rules.js
+++ b/rules.js
@@ -4290,7 +4290,6 @@ function prompt_march() {
return has_march;
}
function goto_march(to) {
- push_undo();
let from = get_lord_locale(game.command);
game.march = { from, to };
march_with_group_1();
diff --git a/rules.ts b/rules.ts
index 9ff1e62..fdecf5d 100644
--- a/rules.ts
+++ b/rules.ts
@@ -5161,7 +5161,6 @@ function prompt_march() {
}
function goto_march(to: Locale) {
- push_undo()
let from = get_lord_locale(game.command)
game.march = { from, to }
march_with_group_1()