Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2002:
[Freeciv-Dev] Re: Wonder obsolescence / AI tech goals (PR#1490)
Home

[Freeciv-Dev] Re: Wonder obsolescence / AI tech goals (PR#1490)

[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: Wonder obsolescence / AI tech goals (PR#1490)
From: Christian Knoke <chrisk@xxxxxxxx>
Date: Mon, 27 May 2002 11:17:03 -0700 (PDT)

On Sun, May 26, 2002 at 02:34:20PM +0200, Raimar Falke wrote:
> On Thu, May 23, 2002 at 10:55:59AM -0700, Christian Knoke wrote:
[...]
> 
> > The wonder obsolenscence (now I have looked up this word
> > I can write it twice) is indicated 1 round too late, in
> > the wonder report.
> 
> The attached should fix this (untested).

I've tried this patch, and it seems to fix the problem.

> 
> Ben: this call may also be placed in update_research. Any comments?
> 
>       Raimar

Christian

> Index: server/plrhand.c
> ===================================================================
> RCS file: /home/freeciv/CVS/freeciv/server/plrhand.c,v
> retrieving revision 1.235
> diff -u -r1.235 plrhand.c
> --- server/plrhand.c  2002/05/24 07:59:06     1.235
> +++ server/plrhand.c  2002/05/26 12:13:33
> @@ -262,6 +262,7 @@
>  
>    set_invention(plr, tech_found, TECH_KNOWN);
>    update_research(plr);
> +  update_all_effects();
>    remove_obsolete_buildings(plr);
>    if (tech_flag(tech_found,TF_RAILROAD)) {
>      upgrade_city_rails(plr, was_discovery);

-- 
Christian Knoke     * * *      http://www.enter.de/~c.knoke/
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.




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