<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39457 >

Since 2.1, airgoto doesn't work with the "G" command. It seems it's a
bug. I think there are > instead of >=.

--- common/aicore/pf_tools.c    2007-07-14 11:03:06.000000000 +0200
+++ common/aicore/pf_tools.c.exp        2007-07-15 00:31:36.000000000 +0200
@@ -549,8 +549,8 @@
   }
 
   if (param->moves_left_initially + param->move_rate * fuel >= moves * 2) {
-    if (param->fuel_left_initially > 1
-        || ((param->fuel_left_initially > 2
+    if (param->fuel_left_initially >= 1
+        || ((param->fuel_left_initially >= 2
              || !BV_ISSET(param->unit_flags, F_ONEATTACK))
             && (is_enemy_unit_tile(ptile, param->owner)
                 || (ptile->city && is_enemy_city_tile(ptile,
param->owner))))) {

--- common/aicore/pf_tools.c	2007-07-14 11:03:06.000000000 +0200
+++ common/aicore/pf_tools.c.exp	2007-07-15 00:31:36.000000000 +0200
@@ -549,8 +549,8 @@
   }
 
   if (param->moves_left_initially + param->move_rate * fuel >= moves * 2) {
-    if (param->fuel_left_initially > 1
-        || ((param->fuel_left_initially > 2
+    if (param->fuel_left_initially >= 1
+        || ((param->fuel_left_initially >= 2
              || !BV_ISSET(param->unit_flags, F_ONEATTACK))
             && (is_enemy_unit_tile(ptile, param->owner)
                 || (ptile->city && is_enemy_city_tile(ptile, param->owner))))) {
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to