[Freeciv-Dev] (PR#12435) Can't sentry units in airbases
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12435 >
> [franzmach@xxxxxxxx - Sat Mar 05 14:12:36 2005]:
>
> ok, the title says nearly all,
> it isn't possible to sentry airplanes in the airbases
> (that worked in older Freeciv versions)
> and this could be a bit annoying if you've a lot of
> them :(
Ooh, good report! This is actually a minor symptom of a much larger bug
that could have far-reaching results. Fortunately it's easy to fix.
-jason
Index: common/unit.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/unit.c,v
retrieving revision 1.228
diff -u -r1.228 unit.c
--- common/unit.c 2 Mar 2005 19:17:51 -0000 1.228
+++ common/unit.c 6 Mar 2005 18:01:32 -0000
@@ -1518,7 +1518,7 @@
return TRUE;
case AIR_MOVING:
case HELI_MOVING:
- return FALSE;
+ return tile_has_special(punit->tile, S_AIRBASE);
}
die("Invalid move type");
return TRUE;
|
|