Author: jtn
Date: Sun Aug 14 10:52:52 2016
New Revision: 33591

URL: http://svn.gna.org/viewcvs/freeciv?rev=33591&view=rev
Log:
"threxpr" AI needs to use a prefix for its savefile data that's distinct
from "threaded". Without this, a server with both built in produces
savefiles that can't be loaded.

See gna bug #24971.

Modified:
    trunk/ai/threxpr/threxprai.c

Modified: trunk/ai/threxpr/threxprai.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/threxpr/threxprai.c?rev=33591&r1=33590&r2=33591&view=diff
==============================================================================
--- trunk/ai/threxpr/threxprai.c        (original)
+++ trunk/ai/threxpr/threxprai.c        Sun Aug 14 10:52:52 2016
@@ -93,7 +93,7 @@
                                struct section_file *file, int plrno)
 {
   TEXAI_AIT;
-  TEXAI_DFUNC(dai_player_save, "tai", pplayer, file, plrno);
+  TEXAI_DFUNC(dai_player_save, "teai", pplayer, file, plrno);
 }
 
 /**************************************************************************
@@ -104,7 +104,7 @@
                                int plrno)
 {
   TEXAI_AIT;
-  TEXAI_DFUNC(dai_player_load, "tai", pplayer, file, plrno);
+  TEXAI_DFUNC(dai_player_load, "teai", pplayer, file, plrno);
 }
 
 /**************************************************************************
@@ -190,7 +190,7 @@
                              const struct city *pcity, const char *citystr)
 {
   TEXAI_AIT;
-  TEXAI_DFUNC(dai_city_save, "tai", file, pcity, citystr);
+  TEXAI_DFUNC(dai_city_save, "teai", file, pcity, citystr);
 }
 
 /**************************************************************************
@@ -200,7 +200,7 @@
                              struct city *pcity, const char *citystr)
 {
   TEXAI_AIT;
-  TEXAI_DFUNC(dai_city_load, "tai", file, pcity, citystr);
+  TEXAI_DFUNC(dai_city_load, "teai", file, pcity, citystr);
 }
 
 /**************************************************************************
@@ -354,7 +354,7 @@
                              const struct unit *punit, const char *unitstr)
 {
   TEXAI_AIT;
-  TEXAI_DFUNC(dai_unit_save, "tai", file, punit, unitstr);
+  TEXAI_DFUNC(dai_unit_save, "teai", file, punit, unitstr);
 }
 
 /**************************************************************************
@@ -364,7 +364,7 @@
                              struct unit *punit, const char *unitstr)
 {
   TEXAI_AIT;
-  TEXAI_DFUNC(dai_unit_load, "tai", file, punit, unitstr);
+  TEXAI_DFUNC(dai_unit_load, "teai", file, punit, unitstr);
 }
 
 /**************************************************************************


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

Reply via email to