Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2003:
[Freeciv-Dev] (PR#4766) city happiness isn't calculated on game load
Home

[Freeciv-Dev] (PR#4766) city happiness isn't calculated on game load

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#4766) city happiness isn't calculated on game load
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Aug 2003 06:50:59 -0700
Reply-to: rt@xxxxxxxxxxxxxx

[jdorje - Wed Aug  6 07:46:02 2003]:

> Jason Short wrote:
> 
> > But update_dumb_city() calls city_happy and city_unhappy, which don't 
> > work at this point since happiness hasn't been calculated.
> 
> Here's a patch.  It is largely untested.

This variant is better - we load all player cities then refresh them,
one by one.  This seems like the correct thing to do, and prevents
comparison errors when loading games.

jason

Attachment: generic_city_refresh-2.diff
Description: generic_city_refresh-2.diff


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