[Freeciv-Dev] (PR#13824) Save bulbs_last_turn
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13824 >
The attached patch saves bulbs_last_turn values in savegames.
--
mateusz
Index: server/savegame.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/savegame.c,v
retrieving revision 1.275
diff -u -r1.275 savegame.c
--- server/savegame.c 18 Aug 2005 06:44:29 -0000 1.275
+++ server/savegame.c 31 Aug 2005 07:42:18 -0000
@@ -1816,6 +1816,11 @@
plr->economic.tax=secfile_lookup_int(file, "player%d.tax", plrno);
plr->economic.science=secfile_lookup_int(file, "player%d.science", plrno);
plr->economic.luxury=secfile_lookup_int(file, "player%d.luxury", plrno);
+
+ plr->bulbs_last_turn =
+ secfile_lookup_int_default(file, 0,
+ "player%d.bulbs_last_turn",
+ plrno);
/* how many future techs were researched already by player */
research->future_tech
@@ -2538,6 +2543,9 @@
secfile_insert_int(file, plr->economic.tax, "player%d.tax", plrno);
secfile_insert_int(file, plr->economic.science, "player%d.science", plrno);
secfile_insert_int(file, plr->economic.luxury, "player%d.luxury", plrno);
+
+ secfile_insert_int(file, plr->bulbs_last_turn, "player%d.bulbs_last_turn",
+ plrno);
secfile_insert_int(file, get_player_research(plr)->future_tech,
"player%d.futuretech", plrno);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#13824) Save bulbs_last_turn,
Mateusz Stefek <=
|
|