mail[Wesnoth-commits] r20569 - /trunk/src/unit_types.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by jeremy . rosen on September 18, 2007 - 22:10:
Author: boucman
Date: Tue Sep 18 22:10:09 2007
New Revision: 20569

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20569&view=rev
Log:
reintroduce compatibility for image_short and image_long, this will be phased 
out later

Modified:
    trunk/src/unit_types.cpp

Modified: trunk/src/unit_types.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_types.cpp?rev=20569&r1=20568&r2=20569&view=diff
==============================================================================
--- trunk/src/unit_types.cpp (original)
+++ trunk/src/unit_types.cpp Tue Sep 18 22:10:09 2007
@@ -65,7 +65,7 @@
                const config expanded_cfg = 
unit_animation::prepare_animation(cfg,"animation");
                const config::child_list& animations = 
expanded_cfg.get_children("animation");
                for(config::child_list::const_iterator d = 
animations.begin(); d != animations.end(); ++d) {
-                       lg::wml_error<<"attack animation  directly in attack 
is deprecated, support will be removed in 1.3.10 (in unit "<<id<<")\n";
+                       lg::wml_error<<"attack animation directly in attack 
is deprecated, support will be removed in 1.3.10 (in unit "<<id<<")\n";
                        lg::wml_error<<"please put it with an [attack_anim] 
tag in the [unit] and filter on the attack name\n";
                        animation_.push_back(unit_animation(**d));
                        animation_.back().back_compat_add_name(cfg["name"]);
@@ -77,6 +77,8 @@
                                
animation_.back().back_compat_add_name(cfg["name"]);
                        }
                }
+               
animation_.push_back(unit_animation(-150,unit_frame(image_fighting,300),"attack",unit_animation::DEFAULT_ANIM));
+               animation_.back().back_compat_add_name(cfg["name"]);
        }
 
        id_ = unit_id_test(cfg["name"]);
@@ -890,6 +892,7 @@
        const std::string& val = cfg_[str];
 
        if(!val.empty())
+               //lg::wml_error<<"image_short and image_long are deprecated, 
support will be removed in 1.3.8 (in unit "<<id()<<")\n";
                return val;
        else
                return image();




Related Messages


Powered by MHonArc, Updated Tue Sep 18 22:40:40 2007