summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-03-21 15:36:51 +0100
committerTor Andersson <tor@ccxvii.net>2024-03-21 15:36:51 +0100
commit0cf8ffac378f451b2230f8466bf962260ad43de4 (patch)
tree6b598c1b931e4a36c70a261536b80d596ab58fe8
parent441c2ff4658312371f70a4ddc768ac13834d4be8 (diff)
downloadrommel-in-the-desert-0cf8ffac378f451b2230f8466bf962260ad43de4.tar.gz
Fix bug when slowest unit is fastest possible.
-rw-r--r--rules.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index f6f40ce..f8689d2 100644
--- a/rules.js
+++ b/rules.js
@@ -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) {