Author: esr
Date: Sun Apr 12 09:02:22 2009
New Revision: 34756

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34756&view=rev
Log:
Backward-compattibility hack to accept "stoned" in savefiles.

Modified:
    trunk/src/unit.cpp

Modified: trunk/src/unit.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=34756&r1=34755&r2=34756&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Sun Apr 12 09:02:22 2009
@@ -2615,7 +2615,15 @@
                                        const std::string &remove = 
effect["remove"];
 
                                        if(add.empty() == false) {
-                                               set_state(add,"yes");
+                                               // FIXME: 1.6 compatibility hack
+                                               // Remove after 1.7.2
+                                               // (and bump min_savegame))
+                                               if (add == "stoned") {
+                                                       
set_state("petrified","yes");;
+                                                       lg::wml_error << "Usage 
of 'stoned' is deprecated use 'petrify' instead, "
+                                                               "support will 
be removed in 1.7.2.\n";
+                                               } else
+                                                       set_state(add,"yes");
                                        }
 
                                        if(remove.empty() == false) {


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to