Fixed compiler warning.
This commit is contained in:
parent
a4fdb969b6
commit
697713a561
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 - std::min<int>(20/speed,20)) {
|
||||
while (SDL_GetTicks() < (unsigned int)end_tick - std::min<int>((unsigned int)(20/speed),20)) {
|
||||
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