fix an animation glitch that would cut shorten the return of units in attack anims
This commit is contained in:
parent
4070200454
commit
c88bcf5889
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue