diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-25 17:48:10 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 12:53:17 +0100 |
commit | e7209785dae10f912434881ee75ee433b8b1f98b (patch) | |
tree | 1f1336335a6b5dc60622d6848c57acfba2c5bc30 /rules.js | |
parent | 983044ccaf8b179f499ca600fddca518be393fa8 (diff) | |
download | hammer-of-the-scots-e7209785dae10f912434881ee75ee433b8b1f98b.tar.gz |
hammer: Add missing clear_undo calls.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1227,6 +1227,7 @@ states.pillage_builds = { // if (game.pillage == 0) end_pillage(game.from); }, end_pillage: function () { + clear_undo(); while (game.pillage > 0) { --game.pillage; game.turn_log.push([game.from]); @@ -1799,6 +1800,7 @@ states.retreat = { gen_action(view, 'end_retreat'); }, end_retreat: function () { + clear_undo(); for (let b in BLOCKS) if (game.location[b] == game.where && block_owner(b) == game.active) eliminate_block(b, 'retreat'); @@ -2711,6 +2713,7 @@ states.english_builds = { ++game.steps[who]; }, end_builds: function () { + clear_undo(); print_turn_log("builds"); game.rp = null; goto_english_feudal_levy(); |