diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-12-14 14:08:05 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-12-14 14:08:05 +0000 |
commit | 69658dea8662d4caa31f7b88ebf5fffefb421009 (patch) | |
tree | b816844e8675fdc15526a0b5bcc33053c6ba2ee6 /rules.js | |
parent | 25ba343608b11b3cceec54e8aa020528ddf747b6 (diff) | |
download | 1989-dawn-of-freedom-69658dea8662d4caa31f7b88ebf5fffefb421009.tar.gz |
Tweak get icons
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -2808,7 +2808,9 @@ function check_control(space) { } function get_icons(starting_control, end_control) { - if (game.state !== 'place_starting_infl') { + if (game.state === 'place_starting_infl') + return '' + else { if (starting_control !== end_control) { console.log('in long bit') if (starting_control === DEM && end_control === COM) @@ -2846,8 +2848,9 @@ function get_icons(starting_control, end_control) { else return '' } - } else - return '' + else + return '' + } } function do_tst_attempt() { |