[Freeciv-Dev] Re: AI pointlessly building Great Library (PR#284)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, 11 May 2000, Nicolas BRUNEL wrote:
>
>
> Here is a fix. AI will ignore Great Library if there are less than 3
> players. Barbarians aren't counted in this number. I add in the struct
> game a variable nbarbarians. Each time create_barbarian_player is
> successfully called, this number is increased. So, if game.nplayers -
> game.nbarbarians < 3, AI will ignore the great library.
>
> Bye
>
> Nicolas
>
>
I don't see any
nbarbarians--;
in the patch. A quick check in remove_player should do this.
Also, you should make sure the variable is correct in the client or add a
comment that it isn't kept up to date there.
-Thue
|
|