diff options
author | Joseph-Eugene Winzer | 2017-08-30 22:39:53 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:01:00 +0000 |
commit | 98ab5ee14236dea9b64488e860299c32392c8bfb (patch) | |
tree | f98acbf54167ddb3ef2ffaca451327b232c21738 | |
parent | 7f513ac1db35a3cc76d9193b01d89974066ddfb9 (diff) | |
download | scummvm-rg350-98ab5ee14236dea9b64488e860299c32392c8bfb.tar.gz scummvm-rg350-98ab5ee14236dea9b64488e860299c32392c8bfb.tar.bz2 scummvm-rg350-98ab5ee14236dea9b64488e860299c32392c8bfb.zip |
SUPERNOVA: Alters wait function to stall at least _delay ms
wait2() is used for updating events all over the code with a parameter
of 1, so to be sure there's at least one update it is wrapped in a
do-while now.
-rw-r--r-- | engines/supernova/state.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 5fc764fc69..b37df1941b 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -948,11 +948,11 @@ void GameManager::errorTemp() { void GameManager::wait2(int ticks) { int32 end = _state._time + ticksToMsec(ticks); - while (_state._time < end) { + do { _vm->updateEvents(); g_system->updateScreen(); g_system->delayMillis(_vm->_delay); - } + } while (_state._time < end); } void GameManager::setAnimationTimer(int ticks) { |