Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2004:
[freeciv-ai] Re: [Freeciv-Dev] (PR#9614) initialize city cache after bui

[freeciv-ai] Re: [Freeciv-Dev] (PR#9614) initialize city cache after bui

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [freeciv-ai] Re: [Freeciv-Dev] (PR#9614) initialize city cache after building a city
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Wed, 11 Aug 2004 05:11:25 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: >

A proper way would be to add a variable cache_valid and then to check it
on cache reads.  But I guess it's too much work.

On Tue, 10 Aug 2004, Jason Short wrote:

> <URL: >
> > [jdorje - Thu Aug 05 20:00:31 2004]:
> >
> > When the AI builds a city in the middle of autosettler actions, the
> > cache for that city isn't built.  Perhaps in future other cached items
> > may need to be rebuilt too.
> >
> > This is a major bug!  Settlers will be given nearly random orders.
> >
> > This patch solves it by calling initialize_infrastructure_cache.  Note
> > this means re-initializing all caches for the player, which may be slow.
> >   On the other hand cities aren't founded all that often.
> I made a new patch, then found that this patch was already here.  So
> here's the new patch (with a couple of added assertions).
> This should be committed soon.
> jason

[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] Re: [Freeciv-Dev] (PR#9614) initialize city cache after building a city, Gregory Berkolaiko <=