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: Fri, 11 Jul 2003 07:46:18 -0700
Reply-to: rt@xxxxxxxxxxxxxx

On Fri, 11 Jul 2003, Jason Short wrote:
> Valgrind shows that pcity->ai.urgency is never updated after a saved
> game is loaded.
>
> Most likely this is a bug; the urgency should be recalculated when it is
> needed.Possibly the urgency should be saved.  This patch simply
> initializes it to 0.

Please add it to the savegame instead. Just a handful of extra lines of
code.

  - Per




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