fix frames being skipped randomly on accelerated speed
This commit is contained in:
parent
b60c77c9e5
commit
f0cba25542
1 changed files with 1 additions and 1 deletions
|
@ -943,7 +943,7 @@ void unit_animator::wait_until(int animation_time) const
|
|||
{
|
||||
game_display*disp = game_display::get_singleton();
|
||||
int end_tick = animated_units_[0].my_unit->get_animation()->time_to_tick(animation_time);
|
||||
while (SDL_GetTicks() < (unsigned int)end_tick - 20*disp->turbo_speed()) {
|
||||
while (SDL_GetTicks() < (unsigned int)end_tick - 20/disp->turbo_speed()) {
|
||||
disp->draw();
|
||||
end_tick = animated_units_[0].my_unit->get_animation()->time_to_tick(animation_time);
|
||||
events::pump();
|
||||
|
|
Loading…
Add table
Reference in a new issue