summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
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)
}