Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2005:
[Freeciv-Dev] (PR#12948) watchtower_vision is missing from savegame
Home

[Freeciv-Dev] (PR#12948) watchtower_vision is missing from savegame

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12948) watchtower_vision is missing from savegame
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 30 Apr 2005 22:20:20 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12948 >

You can't load 2.1 savegames in 2.0 anymore.  The reason is the
watchtower_vision value isn't saved.  This was broken in PR#12490.  This
patch fixes it.

-jason

Index: server/savegame.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/savegame.c,v
retrieving revision 1.237
diff -u -r1.237 savegame.c
--- server/savegame.c   30 Apr 2005 20:59:50 -0000      1.237
+++ server/savegame.c   1 May 2005 05:19:09 -0000
@@ -3803,6 +3803,8 @@
   secfile_insert_int(file, game.borders, "game.borders");
   secfile_insert_bool(file, game.happyborders, "game.happyborders");
   secfile_insert_int(file, game.diplomacy, "game.diplomacy");
+  /* watchtower_vision is required by 2.0 servers. */
+  secfile_insert_int(file, 0, "game.watchtower_vision");
   secfile_insert_int(file, game.watchtower_extra_vision, 
"game.watchtower_extra_vision");
   secfile_insert_int(file, game.allowed_city_names, "game.allowed_city_names");
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12948) watchtower_vision is missing from savegame, Jason Short <=