Author: cazfi
Date: Thu Jan  5 07:49:26 2017
New Revision: 34787

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

Reported by Christian Knoke <chrisk>

See bug #25405

Modified:
    branches/S3_0/server/savegame2.c
    branches/S3_0/server/savegame3.c

Modified: branches/S3_0/server/savegame2.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/savegame2.c?rev=34787&r1=34786&r2=34787&view=diff
==============================================================================
--- branches/S3_0/server/savegame2.c    (original)
+++ branches/S3_0/server/savegame2.c    Thu Jan  5 07:49:26 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: branches/S3_0/server/savegame3.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/savegame3.c?rev=34787&r1=34786&r2=34787&view=diff
==============================================================================
--- branches/S3_0/server/savegame3.c    (original)
+++ branches/S3_0/server/savegame3.c    Thu Jan  5 07:49:26 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