Revert "remove a useless delay only visible at slow speed"
This reverts SVN 2009-03-01T11:43:51Z!jeremy.rosen@enst-bretagne.fr due to new glitches at normal (1.0x) speed. It may be applied back and rectified after the RC release.
This commit is contained in:
parent
df9ad4632f
commit
882d950703
1 changed files with 1 additions and 1 deletions
|
@ -941,7 +941,7 @@ void unit_animator::wait_until(int animation_time) const
|
|||
disp->draw();
|
||||
events::pump();
|
||||
int end_tick = animated_units_[0].my_unit->get_animation()->time_to_tick(animation_time);
|
||||
while (SDL_GetTicks() < (unsigned int)end_tick) {
|
||||
while (SDL_GetTicks() < (unsigned int)end_tick - 20/speed) {
|
||||
disp->delay(std::max<int>(0,
|
||||
std::min<int>(10,
|
||||
static_cast<int>((animation_time - get_animation_time()) * speed))));
|
||||
|
|
Loading…
Add table
Reference in a new issue