From daef2be2f11d1fdf264610426bbcadc3ffdd552a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 6 May 2023 19:26:38 +0200 Subject: Only clear undo when selecting another faction. --- rules.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index 47d45c4..92dbad7 100644 --- a/rules.js +++ b/rules.js @@ -7173,25 +7173,29 @@ states.vm_current = { view.actions.cartels = 1 }, govt() { - clear_undo() + if (game.current !== GOVT) + clear_undo() game.current = GOVT log_transfer(faction_name[game.current] + "...") vm_next() }, farc() { - clear_undo() + if (game.current !== FARC) + clear_undo() game.current = FARC log_transfer(faction_name[game.current] + "...") vm_next() }, auc() { - clear_undo() + if (game.current !== AUC) + clear_undo() game.current = AUC log_transfer(faction_name[game.current] + "...") vm_next() }, cartels() { - clear_undo() + if (game.current !== CARTELS) + clear_undo() game.current = CARTELS log_transfer(faction_name[game.current] + "...") vm_next() -- cgit v1.2.3