Author: cazfi
Date: Thu Jan  5 07:49:21 2017
New Revision: 34786

URL: http://svn.gna.org/viewcvs/freeciv?rev=34786&view=rev
Log:
When loading saved game, always lookup action decision tiles.

Reported by Christian Knoke <chrisk>

See bug #25405

Modified:
    trunk/server/savegame2.c
    trunk/server/savegame3.c

Modified: trunk/server/savegame2.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/savegame2.c?rev=34786&r1=34785&r2=34786&view=diff
==============================================================================
--- trunk/server/savegame2.c    (original)
+++ trunk/server/savegame2.c    Thu Jan  5 07:49:21 2017
@@ -4132,6 +4132,8 @@
       log_sg("Bad action_decision_tile for unit %d", punit->id);
     }
   } else {
+    (void) secfile_entry_lookup(loading->file, "%s.action_decision_tile_x", 
unitstr);
+    (void) secfile_entry_lookup(loading->file, "%s.action_decision_tile_y", 
unitstr);
     punit->action_decision_tile = NULL;
   }
 

Modified: trunk/server/savegame3.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/savegame3.c?rev=34786&r1=34785&r2=34786&view=diff
==============================================================================
--- trunk/server/savegame3.c    (original)
+++ trunk/server/savegame3.c    Thu Jan  5 07:49:21 2017
@@ -5364,6 +5364,8 @@
       log_sg("Bad action_decision_tile for unit %d", punit->id);
     }
   } else {
+    (void) secfile_entry_lookup(loading->file, "%s.action_decision_tile_x", 
unitstr);
+    (void) secfile_entry_lookup(loading->file, "%s.action_decision_tile_y", 
unitstr);
     punit->action_decision_tile = NULL;
   }
 


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

Reply via email to