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:
Ignacio R. Morelle 2009-03-01 18:51:34 +00:00
parent df9ad4632f
commit 882d950703

View file

@ -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))));