Author: sveinung
Date: Tue Jul 22 04:39:39 2014
New Revision: 25680

URL: http://svn.gna.org/viewcvs/freeciv?rev=25680&view=rev
Log:
Alien ruleset: Change specialist name to avoid savegame corruption

The name of the "Government Merchants" specialist contains a space. The
specialist rule name is used as an entry name in savegames. Freeciv savegames
are section files. Section file entry names can't contain spaces.

Add a separate rule name without a space to make saving work again.

See bug #22377

Modified:
    trunk/data/alien/cities.ruleset
    trunk/data/alien/effects.ruleset

Modified: trunk/data/alien/cities.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/cities.ruleset?rev=25680&r1=25679&r2=25680&view=diff
==============================================================================
--- trunk/data/alien/cities.ruleset     (original)
+++ trunk/data/alien/cities.ruleset     Tue Jul 22 04:39:39 2014
@@ -62,6 +62,7 @@
 
 [specialist_government_merchant]
 name           = _("Government Merchants")
+rule_name       = "Government_Merchants"
 short_name     = _("?Merchant:M")
 graphic_alt     = "specialist.taxman_0"
 reqs           =

Modified: trunk/data/alien/effects.ruleset
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/data/alien/effects.ruleset?rev=25680&r1=25679&r2=25680&view=diff
==============================================================================
--- trunk/data/alien/effects.ruleset    (original)
+++ trunk/data/alien/effects.ruleset    Tue Jul 22 04:39:39 2014
@@ -125,7 +125,7 @@
 value   = 2
 reqs    =
     { "type", "name", "range"
-      "Specialist", "Government Merchants", "Local"
+      "Specialist", "Government_Merchants", "Local"
       "OutputType", "gold", "Local"
     }
 
@@ -135,7 +135,7 @@
 reqs    =
     { "type", "name", "range"
       "Tech", "Specialist Training", "Player"
-      "Specialist", "Government Merchants", "Local"
+      "Specialist", "Government_Merchants", "Local"
       "OutputType", "gold", "Local"
     }
 


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

Reply via email to