Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#11205) Nation report after load
Home

[Freeciv-Dev] (PR#11205) Nation report after load

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#11205) Nation report after load
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 27 Nov 2004 11:52:37 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=11205 >

> [chrisk - Fri Nov 26 09:13:52 2004]:
> 
> 
> CVS 26 NOV 2004 S2 GTK2
> 
> After loading a saved game, the Nation Report (F11) has empty data.

Ugh.  I didn't realize the score data was used for the demographics
report.  The score data isn't recalculated until the end of the turn.

It's easy enough to recalculate it on load.  This patch does that and
should be used to fix the bug.  However this really isn't right since it
means save+load will cause the demographics to change.

jason

Index: server/savegame.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/savegame.c,v
retrieving revision 1.208
diff -u -r1.208 savegame.c
--- server/savegame.c   24 Nov 2004 00:23:10 -0000      1.208
+++ server/savegame.c   27 Nov 2004 19:46:28 -0000
@@ -3558,6 +3558,8 @@
     } unit_list_iterate_safe_end;
   } players_iterate_end;
 
+  calc_civ_score();
+
   return;
 }
 

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