Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2005:
[Freeciv-Dev] (PR#13025) script variables aren't saved?
Home

[Freeciv-Dev] (PR#13025) script variables aren't saved?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#13025) script variables aren't saved?
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Fri, 7 Oct 2005 18:05:06 -0700
Reply-to: bugs@xxxxxxxxxxx

<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);
 }

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