Re: (PR#10801) AI is building Great Library when there are only two players

"Per I. Mathisen" <per-0/[email protected]>
Newsgroups gmane.games.freeciv.ai
Message-ID <[email protected]>
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10801 >

On Sat, 30 Oct 2004, Mateusz Stefek wrote:
> As in topic. Probably nplayers in adjust_building_want_by_effects()
> counts also barbarians. (I noticed that AI changed it's production to GT
> when barbarians where created)

Obvious mistake. Obvious fix:

   int nplayers = game.nplayers
+                 - game.nbarbarians
                  - team_count_members_alive(pplayer->team);

Commited & closed.

  - Per
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.