Complete.Org: Mailing Lists: Archives: freeciv-ai: May 2004:
[freeciv-ai] (PR#8777) Find ferry

[freeciv-ai] (PR#8777) Find ferry

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxxx
Subject: [freeciv-ai] (PR#8777) Find ferry
From: "Guest" <rt-guest@xxxxxxxxxxx>
Date: Thu, 27 May 2004 22:23:36 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: >

> > >+    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
> the
> PF-search will only give us sea tiles or tiles of our continent, a
> special
> effort has to be taken to find ferris in cities of other continents.
> The
> 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.

David Stewart

[Prev in Thread] Current Thread [Next in Thread]