summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-01 18:13:28 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-01 18:13:41 +0200
commit392418f5fe031bbac23c8c80fdcc7528e5a84e59 (patch)
tree29c3f24de1963817f37e73cc647cdd52a77a0af1 /rules.js
parent2c9ccad08c841e38efeee3eb49304a05613894d5 (diff)
downloadwaterloo-campaign-1815-392418f5fe031bbac23c8c80fdcc7528e5a84e59.tar.gz
Fix bug when eliminating blown corps.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 91bde78..f1b334e 100644
--- a/rules.js
+++ b/rules.js
@@ -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)
}