diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-01 18:13:28 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-01 18:13:41 +0200 |
commit | 392418f5fe031bbac23c8c80fdcc7528e5a84e59 (patch) | |
tree | 29c3f24de1963817f37e73cc647cdd52a77a0af1 /rules.js | |
parent | 2c9ccad08c841e38efeee3eb49304a05613894d5 (diff) | |
download | waterloo-campaign-1815-392418f5fe031bbac23c8c80fdcc7528e5a84e59.tar.gz |
Fix bug when eliminating blown corps.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -361,7 +361,7 @@ function blow_unit(p, n) { } function eliminate_unit(p) { - if (piece_is_on_map(p)) { + if (piece_hex(p) !== ELIMINATED) { log("P" + p + " eliminated.") set_piece_hex(p, ELIMINATED) } |