fix an animation glitch that would cut shorten the return of units in attack anims

This commit is contained in:
Jérémy Rosen 2007-01-22 22:48:17 +00:00
parent 4070200454
commit c88bcf5889

View file

@ -149,7 +149,7 @@ bool animated<T,T_void_value>::animation_would_finish() const
return true;
if(!started_)
return true;
if(!cycles_ && (current_ticks > (int)(get_end_time()/acceleration_+start_tick_)))
if(!cycles_ && (((double)(current_ticks - start_tick_)*acceleration_)+starting_frame_time_) > get_end_time())
return true;
return false;