[Freeciv-Dev] Re: (PR#3776) Goto sees ZOC but ignores it
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Gregory Berkolaiko wrote:
> [ChrisK@xxxxxxxx - Sun Mar 23 23:24:35 2003]:
>
>
>>CVS 23 MAR 2003 GTK 1
>>
>>Here is a special case where goto computes a route through
>>the enemy's ZOC while that ZOC is fully visible.
>>
>>Login as chris. Start. Send tank from Umtata to the tile south of /
>>next to Swazi.
>
>
> Please try the attached patch. Well, actually I have tried it already
> and it works. But maybe you can find other cases where a fix is needed.
>
> Note: fogged cities are considered occupied for the purposes of ZoC.
> Hopefully this resolves 3387 as well.
> + pcity = is_non_allied_city_tile(ptile, pplayer);
> + if (pcity && (pcity->occupied || tile_get_known(x1, y1) != TILE_KNOWN)) {
> + /* If the city is fogged, we assume it's occupied */
> + return FALSE;
> + }
I think you mean "seen" here, not "known". Perhaps tile_is_known_and_seen?
jason
[Freeciv-Dev] Re: (PR#3776) Goto sees ZOC but ignores it, Gregory Berkolaiko, 2003/07/16
[Freeciv-Dev] Re: (PR#3776) Goto sees ZOC but ignores it, Gregory Berkolaiko, 2003/07/16
|
|