Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9776) Some options related to map generator aren't sav
Home

[Freeciv-Dev] (PR#9776) Some options related to map generator aren't sav

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9776) Some options related to map generator aren't saved
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Mon, 23 Aug 2004 07:15:48 -0700
Reply-to: rt@xxxxxxxxxxx

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

Some options related to map generator aren't saved
-tinyisles
-separatepoles
-alltemperate

Attached patch fixes it.

Why is it needed?
- debuging
- scenarios
--
mateusz
Index: savegame.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/savegame.c,v
retrieving revision 1.176
diff -u -r1.176 savegame.c
--- savegame.c  18 Aug 2004 18:11:05 -0000      1.176
+++ savegame.c  23 Aug 2004 14:13:24 -0000
@@ -3041,6 +3041,15 @@
       map.mountains = secfile_lookup_int(file, "map.mountains");
       map.forestsize = secfile_lookup_int(file, "map.forestsize");
       map.have_huts = secfile_lookup_bool_default(file, TRUE, "map.have_huts");
+      map.alltemperate = secfile_lookup_bool_default(file, 
+                                                     MAP_DEFAULT_ALLTEMPERATE,
+                                                     "map.alltemperate");
+      map.tinyisles = secfile_lookup_bool_default(file,
+                                                  MAP_DEFAULT_TINYISLES,
+                                                 "map.tinyisles");
+      map.separatepoles = secfile_lookup_bool_default(file,
+                                                     
MAP_DEFAULT_SEPARATE_POLES,
+                                                     "map.separatepoles");
 
       if (has_capability("startoptions", savefile_options)) {
        map.xsize = secfile_lookup_int(file, "map.width");
@@ -3404,6 +3413,9 @@
     secfile_insert_int(file, map.huts, "map.huts");
     secfile_insert_int(file, map.generator, "map.generator");
     secfile_insert_bool(file, map.have_huts, "map.have_huts");
+    secfile_insert_bool(file, map.alltemperate, "map.alltemperate");
+    secfile_insert_bool(file, map.tinyisles, "map.tinyisles");
+    secfile_insert_bool(file, map.separatepoles, "map.separatepoles");
   } 
 
   secfile_insert_int(file, game.randseed, "game.randseed");

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