Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] (PR#9653) BUG: Maybe very easy, maybe not: savegame no mor
Home

[Freeciv-Dev] (PR#9653) BUG: Maybe very easy, maybe not: savegame no mor

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9653) BUG: Maybe very easy, maybe not: savegame no more mach in positive years!
From: "Marcelo Burda" <mburda@xxxxxxxxx>
Date: Mon, 9 Aug 2004 17:26:16 -0700
Reply-to: rt@xxxxxxxxxxx

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

with this micro patch and testing this savegame the game no more much  
when years are more than 0 (negative years are no problems)  
  
This bug is not produced by this patch, i think! Someone understand 
it!!  
 
i am working in SuSE 9.1 
 
Marcelo 

Attachment: civgame_test.classic.sav.gz
Description: GNU Zip compressed data

diff -ruN -Xfreeciv/diff_ignore freeciv/server/mapgen.c freeciv_/server/mapgen.c
--- freeciv/server/mapgen.c     2004-08-09 23:44:42.131029776 +0200
+++ freeciv_/server/mapgen.c    2004-08-09 23:56:07.075902328 +0200
@@ -49,6 +49,9 @@
   }                                                                         \
 }
 
+static int *qqch2;
+static int qqch=0;
+
 /* Wrapper for easy access.  It's a macro so it can be a lvalue. */
 #define hmap(x, y) (height_map[map_pos_to_index(x, y)])
 #define hnat(x, y) (height_map[native_pos_to_index((x), (y))])
@@ -1233,6 +1236,8 @@
 void assign_continent_numbers(void)
 {
   map.num_continents = 0;
+  qqch = 0;
+
   whole_map_iterate(x, y) {
     map_set_continent(x, y, 0);
   } whole_map_iterate_end;
set randseed 1234512
set seed 1234512
load ../civgame_test.classic.sav.gz
set endyear 1700
set timeout 1
set timeout -1
start

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9653) BUG: Maybe very easy, maybe not: savegame no more mach in positive years!, Marcelo Burda <=