Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] Re: AI pointlessly building Great Library (PR#284)
Home

[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]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: AI pointlessly building Great Library (PR#284)
From: Thue Janus Kristensen <thue@xxxxxxx>
Date: Thu, 11 May 2000 19:09:52 +0200

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



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