diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-24 01:57:07 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-30 21:59:25 +0200 |
commit | e1a87e1f0db739f8621de271119a59528a7a18ec (patch) | |
tree | de34fcbebe4cbb046cd84fecf828d4473923a09d /rules.js | |
parent | c56833461f979ce6992552ec2be60c55b6222255 (diff) | |
download | friedrich-e1a87e1f0db739f8621de271119a59528a7a18ec.tar.gz |
fix exact elimination
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2053,7 +2053,7 @@ function goto_retreat() { } // remove eliminated generals - for (let i = game.selected.length - 1; i >= 0 && hits > 0; --i) { + for (let i = game.selected.length - 1; i >= 0; --i) { let p = game.selected[i] if (game.troops[p] === 0) { log("P" + p + " eliminated.") |