Repair --nogui option which would enter an infinite loop.

Someone should review if this was the right way to fix it.
This commit is contained in:
Elias Pschernig 2008-01-26 20:47:06 +00:00
parent cfd4cf22b6
commit 47e624306d

View file

@ -892,6 +892,7 @@ void unit_animator::wait_until(int animation_time) const
}
void unit_animator::wait_for_end() const
{
if (game_config::no_delay) return;
bool finished = false;
game_display*disp = game_display::get_singleton();
while(!finished) {