aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/avalot.cpp
diff options
context:
space:
mode:
authoruruk2014-03-06 23:01:53 +0100
committeruruk2014-03-06 23:02:07 +0100
commitd09b482bcb976ab36a5a4aa670b7258b1e12a65c (patch)
tree825c5bdf2bdd8e3763fb4c234a14f5d231c48855 /engines/avalanche/avalot.cpp
parentd22d20077b15e9d45a5892380681380d4f84fd3d (diff)
downloadscummvm-rg350-d09b482bcb976ab36a5a4aa670b7258b1e12a65c.tar.gz
scummvm-rg350-d09b482bcb976ab36a5a4aa670b7258b1e12a65c.tar.bz2
scummvm-rg350-d09b482bcb976ab36a5a4aa670b7258b1e12a65c.zip
AVALANCHE: Implement MainMenu::wait().
Rework other pieces of the engine to fit to it's mechanism.
Diffstat (limited to 'engines/avalanche/avalot.cpp')
-rw-r--r--engines/avalanche/avalot.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp
index fefbbedd34..ae96ac4c74 100644
--- a/engines/avalanche/avalot.cpp
+++ b/engines/avalanche/avalot.cpp
@@ -211,7 +211,9 @@ void AvalancheEngine::setup() {
loadGame(loadSlot);
} else {
_mainmenu->run();
-
+ if (_letMeOut)
+ return;
+
newGame();
thinkAbout(kObjectMoney, kThing);
@@ -223,7 +225,7 @@ void AvalancheEngine::setup() {
void AvalancheEngine::runAvalot() {
setup();
- do {
+ while (!_letMeOut && !shouldQuit()) {
uint32 beginLoop = _system->getMillis();
updateEvents(); // The event handler.
@@ -241,7 +243,7 @@ void AvalancheEngine::runAvalot() {
uint32 delay = _system->getMillis() - beginLoop;
if (delay <= 55)
_system->delayMillis(55 - delay); // Replaces slowdown(); 55 comes from 18.2 Hz (B Flight).
- } while (!_letMeOut && !shouldQuit());
+ };
warning("STUB: run()");