Complete.Org: Mailing Lists: Archives: freeciv-ai: October 2004:
[freeciv-ai] Re: (PR#10801) AI is building Great Library when there are
Home

[freeciv-ai] Re: (PR#10801) AI is building Great Library when there are

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [freeciv-ai] Re: (PR#10801) AI is building Great Library when there are only two players
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Sun, 31 Oct 2004 14:35:18 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10801 >

On Sun, 31 Oct 2004, Per I. Mathisen wrote:

>
> <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.

There is get_num_human_and_ai_players() in common/game.c. Perhaps this
should be reused?

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa






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