Author: ai0867
Date: Sun Oct  5 18:38:30 2008
New Revision: 29905

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29905&view=rev
Log:
* Removed deprecated 'hides' key from [unit][status].

Modified:
    trunk/src/unit.cpp

Modified: trunk/src/unit.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=29905&r1=29904&r2=29905&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Sun Oct  5 18:38:30 2008
@@ -1547,12 +1547,7 @@
        const config* status_flags = cfg.child("status");
        if(status_flags) {
                for(string_map::const_iterator st = 
status_flags->values.begin(); st != status_flags->values.end(); ++st) {
-                       // backwards compatibility (to be dropped after 1.5.2)
-                       if(st->first == "hides") {
-                               states_["hidden"] = st->second;
-                       } else {
-                               states_[st->first] = st->second;
-                       }
+                       states_[st->first] = st->second;
                }
                cfg_.remove_child("status",0);
        }


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

Reply via email to