fix units with no victory animation...

...(more or less all units) staying stuck on their last attack frame
during death animation
This commit is contained in:
Jérémy Rosen 2009-10-18 08:04:51 +00:00
parent ebee25fce1
commit 711218fd60

View File

@ -416,6 +416,10 @@ void unit_animation::fill_initial_animations( std::vector<unit_animation> & anim
animations.back().sub_anims_["_death_sound"].add_frame(1,frame_builder());
animations.back().sub_anims_["_death_sound"].add_frame(1,frame_builder().sound(cfg["die_sound"]),true);
tmp_anim = *itor;
tmp_anim.unit_anim_.override(0,1,"","",0,"");
tmp_anim.event_ = utils::split("victory");
animations.push_back(tmp_anim);
tmp_anim = *itor;
tmp_anim.unit_anim_.override(0,150,"1~0:150");