fix units without standing animations always facing eastward,

...fix for bug #16877
This commit is contained in:
Jérémy Rosen 2010-10-17 13:44:02 +00:00
parent 1041ce9784
commit 028001a441
2 changed files with 4 additions and 4 deletions

View file

@ -175,7 +175,7 @@ unit_animation::unit_animation(int start_time,
hits_(),
value2_(),
sub_anims_(),
unit_anim_(start_time),
unit_anim_(start_time,true),
src_(),
dst_(),
invalidated_(false),
@ -373,7 +373,7 @@ void unit_animation::fill_initial_animations( std::vector<unit_animation> & anim
if( animation_base.empty() )
animation_base.push_back(unit_animation(0,frame_builder().image(default_image).duration(1),"",unit_animation::DEFAULT_ANIM));
animation_base.push_back(unit_animation(0,frame_builder().image(default_image).duration(1).auto_hflip(true),"",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(300).

View file

@ -88,10 +88,10 @@ class unit_animation
class particule:public animated<unit_frame>
{
public:
explicit particule(int start_time=0) :
explicit particule(int start_time=0,bool primary = false) :
animated<unit_frame>(start_time),
accelerate(true),
parameters_(),
parameters_(frame_builder().auto_hflip(primary)),
halo_id_(0),
last_frame_begin_time_(0)
{};