Author: jtn
Date: Mon Jan 25 19:33:18 2016
New Revision: 31592

URL: http://svn.gna.org/viewcvs/freeciv?rev=31592&view=rev
Log:
Correctly load fixed seeds from pre-2.3 scenarios.

See gna bug #24340.

Modified:
    trunk/server/legacysave.c

Modified: trunk/server/legacysave.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/legacysave.c?rev=31592&r1=31591&r2=31592&view=diff
==============================================================================
--- trunk/server/legacysave.c   (original)
+++ trunk/server/legacysave.c   Mon Jan 25 19:33:18 2016
@@ -3618,8 +3618,8 @@
     game.server.autoattack =
       secfile_lookup_bool_default(file, GAME_DEFAULT_AUTOATTACK,
                                   "game.autoattack");
-    game.server.seed =
-      secfile_lookup_int_default(file, game.server.seed,
+    game.server.seed = game.server.seed_setting =
+      secfile_lookup_int_default(file, game.server.seed_setting,
                                  "game.randseed");
     game.server.allowed_city_names =
       secfile_lookup_int_default(file, game.server.allowed_city_names,
@@ -3763,9 +3763,10 @@
                                             "map.generator"),
                          "%s", secfile_error());
       game.map.server.generator = ei;
-      fc_assert_exit_msg(secfile_lookup_int(file, &game.map.server.seed,
+      fc_assert_exit_msg(secfile_lookup_int(file, 
&game.map.server.seed_setting,
                                             "map.seed"),
                          "%s", secfile_error());
+      game.map.server.seed = game.map.server.seed_setting;
       fc_assert_exit_msg(secfile_lookup_int(file, &game.map.server.landpercent,
                                             "map.landpercent"),
                          "%s", secfile_error());


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to