Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2005:
[Freeciv-Dev] (PR#14836) fix compatibility of savegames trunk -> 2.0.7
Home

[Freeciv-Dev] (PR#14836) fix compatibility of savegames trunk -> 2.0.7

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#14836) fix compatibility of savegames trunk -> 2.0.7
From: "Mike Kaufman" <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 11 Dec 2005 17:29:53 -0800
Reply-to: bugs@xxxxxxxxxxx

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

this patch is needed to run savegames in 2.0.7 created by trunk servers.

-mike

Index: server/savegame.c
===================================================================
--- server/savegame.c   (revision 11344)
+++ server/savegame.c   (working copy)
@@ -3172,9 +3172,9 @@
 
     if (has_capability("watchtower", savefile_options)) {
       game.watchtower_extra_vision =
-         secfile_lookup_int(file, "game.watchtower_extra_vision");
+         secfile_lookup_int_default(file, 0, "game.watchtower_extra_vision");
       game.watchtower_vision =
-         secfile_lookup_int(file, "game.watchtower_vision");
+         secfile_lookup_int_default(file, 1, "game.watchtower_vision");
     } else {
       game.watchtower_extra_vision = 0;
       game.watchtower_vision = 1;

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#14836) fix compatibility of savegames trunk -> 2.0.7, Mike Kaufman <=