Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2003:
[Freeciv-Dev] Re: (PR#4536) pcity->ai.urgency not updated after reload
Home

[Freeciv-Dev] Re: (PR#4536) pcity->ai.urgency not updated after reload

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#4536) pcity->ai.urgency not updated after reload
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Tue, 15 Jul 2003 05:36:28 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Tue, 15 Jul 2003, Gregory Berkolaiko wrote:
> > Do you mean to say that saving pcity->ai.urgency in the savegame will not
> > be sufficient?
>
> It would be sufficient if ai.urgency is the only variable set by
> assess_danger_player.Is it?  I am not sure.

Also pcity->ai.danger and grave_danger, IIRC. Those should also be saved.

> Also, I am afraid right now some AI code uses stale urgency values.To
> cure it the least we need to do is to move all AI actions to either end of
> turn or beginning of turn.It will make AI structure simpler and
> therefore easier to trace and debug.What happened to this idea?  Can we
> restart it?

We agreed on the solution (end of turn), but nobody wrote the code. You're
welcome.

  - Per




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