Added accelerated tick calls during room loads

svn-id: r28547
This commit is contained in:
Paul Gilbert 2007-08-12 11:14:23 +00:00
parent e1fd529679
commit 48499f3a52

View File

@ -539,8 +539,10 @@ void Room::setRoomNumber(uint16 newRoomNumber, bool showOverlay) {
int numSeconds = (g_system->getMillis() - _roomData->exitTime) / 1000; int numSeconds = (g_system->getMillis() - _roomData->exitTime) / 1000;
if (numSeconds > 300) numSeconds = 300; if (numSeconds > 300) numSeconds = 300;
game.preloadFlag() = true;
while (numSeconds-- > 0) while (numSeconds-- > 0)
game.tick(true); game.tick();
game.preloadFlag() = false;
} }
update(); update();