[Freeciv-Dev] (PR#13025) script variables aren't saved?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13025 >
> [vasc - Sat Oct 08 01:04:20 2005]:
>
> > [vasc - Tue May 10 13:17:55 2005]:
> >
> > Save doesn't seem to work properly in pre-game. Going to try to find out
> > why...
>
> This patch makes the script.code section be correctly saved in pre-game.
>
> Still got to check out what is up with script.vars.
This time, I did not forget to attach the patch. :-)
Index: server/savegame.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/savegame.c,v
retrieving revision 1.281
diff -u -u -r1.281 savegame.c
--- server/savegame.c 6 Oct 2005 16:28:33 -0000 1.281
+++ server/savegame.c 8 Oct 2005 01:02:02 -0000
@@ -3939,6 +3939,8 @@
map_save(file);
}
+ script_state_save(file);
+
if ((server_state == PRE_GAME_STATE) && game.info.is_new_game) {
return; /* want to save scenarios as well */
}
@@ -3983,6 +3985,4 @@
"game.shuffled_player_%d", i);
}
}
-
- script_state_save(file);
}
|
|