Author: boucman
Date: Fri Jun 26 18:26:01 2009
New Revision: 36412

URL: http://svn.gna.org/viewcvs/wesnoth?rev=36412&view=rev
Log:
fix bug #13743 by disabling the creation of a catch all animation. We have a 
better handling of skip that way

Modified:
    trunk/src/unit_animation.cpp

Modified: trunk/src/unit_animation.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_animation.cpp?rev=36412&r1=36411&r2=36412&view=diff
==============================================================================
--- trunk/src/unit_animation.cpp (original)
+++ trunk/src/unit_animation.cpp Fri Jun 26 18:26:01 2009
@@ -329,14 +329,14 @@
        if( animation_base.empty() )
                
animation_base.push_back(unit_animation(0,frame_builder().image(default_image).duration(1),"",unit_animation::DEFAULT_ANIM));
 
-               
animations.push_back(unit_animation(0,frame_builder().image(default_image).duration(1),"_disabled_",0));
+       
animations.push_back(unit_animation(0,frame_builder().image(default_image).duration(1),"_disabled_",0));
        
animations.push_back(unit_animation(0,frame_builder().image(default_image).duration(1).
                                        
blend("0.0~0.3:100,0.3~0.0:200",display::rgb(255,255,255)),"_disabled_selected_",0));
        for(itor = animation_base.begin() ; itor != animation_base.end() ; 
itor++ ) {
                unit_animation tmp_anim = *itor;
                // provide all default anims
                //no event, providing a catch all anim
-               animations.push_back(tmp_anim);
+               //animations.push_back(tmp_anim);
 
                tmp_anim = *itor;
                tmp_anim.event_ = utils::split("standing");


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

Reply via email to