fix freeze on anims that were both looping and ending at time=0.

This fix the reported animation freeze, if more are found, please report to me
This commit is contained in:
Jérémy Rosen 2007-11-20 22:02:38 +00:00
parent cbd7012612
commit 416ad66b4b

View file

@ -128,7 +128,7 @@ void animated<T,T_void_value>::update_last_draw_time()
}
if(cycles_) {
while(get_animation_time() > get_end_time()){ // cut extra time
start_tick_ += static_cast<int>(get_end_time()/acceleration_);
start_tick_ += static_cast<int>(get_animation_duration()/acceleration_);
current_frame_key_ = 0;
}
}