diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-03-21 15:36:51 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-03-21 15:36:51 +0100 |
commit | 0cf8ffac378f451b2230f8466bf962260ad43de4 (patch) | |
tree | 6b598c1b931e4a36c70a261536b80d596ab58fe8 | |
parent | 441c2ff4658312371f70a4ddc768ac13834d4be8 (diff) | |
download | rommel-in-the-desert-0cf8ffac378f451b2230f8466bf962260ad43de4.tar.gz |
Fix bug when slowest unit is fastest possible.
-rw-r--r-- | rules.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5568,7 +5568,7 @@ function end_probe_hits() { // routing moves function slowest_enemy_unit_speed(where) { - let r = 4 + let r = 5 for_each_enemy_unit_in_hex(where, u => { let s = unit_speed[u] if (s < r) @@ -5578,7 +5578,7 @@ function slowest_enemy_unit_speed(where) { } function slowest_undisrupted_enemy_unit_speed(where) { - let r = 4 + let r = 5 for_each_undisrupted_enemy_unit_in_hex(where, u => { let s = unit_speed[u] if (s < r) @@ -5589,7 +5589,7 @@ function slowest_undisrupted_enemy_unit_speed(where) { function slowest_undisrupted_friendly_unit(where) { let who = -1 - let r = 4 + let r = 5 for_each_undisrupted_friendly_unit_in_hex(where, u => { let s = unit_speed[u] if (s < r) { |