[freeciv-ai] (PR#8777) Find ferry
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8777 >
> > >+ int radius = (is_ocean(map_get_tile(pos.x, pos.y)->terrain) ?
> 1 : 0);
> > It looks like only ocean tiles are searched. Do we want to look in
> > cities as well?
> Unless there is a mistake in my logic, we search cities too. Since
> PF-search will only give us sea tiles or tiles of our continent, a
> effort has to be taken to find ferris in cities of other continents.
> special effort is the square_iterate below.
Ahh now I see. A radius of 1 gets these cities and 0 means a single tile.
I thought a radius of 1 was a single tile and 0 meant a no-op (to skip
land tiles because boats won't be there). My apologies.