[Freeciv-Dev] (PR#9051) revolen value is not saved/restored - W32 CVS 17
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=9051 >
> [saywhat@xxxxxxxxxxxx - Mon Jun 21 09:11:02 2004]:
>
> E.g. I start a game with revolen=3. Play a few turns. End
> game. Load game from one of the autosave files. Revolen is now 0.
Indeed. This patch should fix it.
jason
Index: server/savegame.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/savegame.c,v
retrieving revision 1.160
diff -u -r1.160 savegame.c
--- server/savegame.c 17 Jun 2004 19:50:41 -0000 1.160
+++ server/savegame.c 22 Jun 2004 15:53:06 -0000
@@ -2159,6 +2159,9 @@
"game.barbarians");
game.onsetbarbarian = secfile_lookup_int_default(file, game.onsetbarbarian,
"game.onsetbarbs");
+ game.revolution_length
+ = secfile_lookup_int_default(file, game.revolution_length,
+ "game.revolen");
game.nbarbarians = 0; /* counted in player_load for compatibility with
1.10.0 */
game.occupychance = secfile_lookup_int_default(file, game.occupychance,
@@ -2531,6 +2534,7 @@
secfile_insert_bool(file, game.fixedlength, "game.fixedlength");
secfile_insert_int(file, game.barbarianrate, "game.barbarians");
secfile_insert_int(file, game.onsetbarbarian, "game.onsetbarbs");
+ secfile_insert_int(file, game.revolution_length, "game.revolen");
secfile_insert_int(file, game.occupychance, "game.occupychance");
secfile_insert_str(file, game.demography, "game.demography");
secfile_insert_int(file, game.borders, "game.borders");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#9051) revolen value is not saved/restored - W32 CVS 17/06 (and earlier),
Jason Short <=
|
|