[Freeciv-Dev] Re: (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] Re: (PR#4766) city happiness isn't calculated on game load |
From: |
"Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx> |
Date: |
Wed, 6 Aug 2003 00:46:02 -0700 |
Reply-to: |
rt@xxxxxxxxxxxxxx |
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.
jason
? rc
Index: server/savegame.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/savegame.c,v
retrieving revision 1.129
diff -u -r1.129 savegame.c
--- server/savegame.c 2003/08/05 03:44:34 1.129
+++ server/savegame.c 2003/08/06 07:44:57
@@ -969,6 +969,8 @@
map_set_city(pcity->x, pcity->y, pcity);
city_list_insert_back(&plr->cities, pcity);
+
+ generic_city_refresh(pcity, FALSE, NULL);
}
unit_list_init(&plr->units);
|
|