[Freeciv-Dev] Re: ai autosettlers
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
At 2000/03/09 20:16 , Thue Janus Kristensen wrote:
>Note that the patch does not just stop the ai settlers from builing cities
next
>right next to other cities(the actual bug), but also
>from inside the worked area of other cities. The ai did this late in the game
>on well developed continents (because they had a large surplus of settlers
and
>no obvious cities to add to within the range they checked, I think), such
>robbing the existing big cities of their land. If you don't fell this part is
>necessary edit it out. I might play more with the autosettler code soon...
>beware
Here's a cleaned-up patch. Basically, two things: 1. Declared the local
function static. 2. Changed the local function to use a general-purpose
iterator macro (which I added to city.h). While I was in city.h, I noticed
that city_map_iterate() contained an assumption -- so I fixed it.
ai-settlers-5.diff
Description: Text document
jjm
|
|