diff options
author | Strangerke | 2013-06-26 07:51:11 +0200 |
---|---|---|
committer | Strangerke | 2013-06-26 07:51:11 +0200 |
commit | cf26edf3854ec2441e9ce5e11fada17cfc530754 (patch) | |
tree | be4f2c63febd538665d434c25fe9cf961858c0bd /engines/mortevielle | |
parent | 5086153512d78e0ee5b46808bbf2ba7a8259ab54 (diff) | |
download | scummvm-rg350-cf26edf3854ec2441e9ce5e11fada17cfc530754.tar.gz scummvm-rg350-cf26edf3854ec2441e9ce5e11fada17cfc530754.tar.bz2 scummvm-rg350-cf26edf3854ec2441e9ce5e11fada17cfc530754.zip |
MORTEVIELLE: Remove some useless g_vm
Diffstat (limited to 'engines/mortevielle')
-rw-r--r-- | engines/mortevielle/actions.cpp | 2 | ||||
-rw-r--r-- | engines/mortevielle/mortevielle.cpp | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/engines/mortevielle/actions.cpp b/engines/mortevielle/actions.cpp index 47ffb2e4ba..3a27c27069 100644 --- a/engines/mortevielle/actions.cpp +++ b/engines/mortevielle/actions.cpp @@ -1408,7 +1408,7 @@ void MortevielleEngine::fctDiscuss() { do { bool dummyFl; _mouse.moveMouse(dummyFl, retKey); - if (g_vm->shouldQuit()) + if (shouldQuit()) return; _mouse.getMousePosition(x, y, click); diff --git a/engines/mortevielle/mortevielle.cpp b/engines/mortevielle/mortevielle.cpp index 6199252674..c6cafac9d6 100644 --- a/engines/mortevielle/mortevielle.cpp +++ b/engines/mortevielle/mortevielle.cpp @@ -582,12 +582,12 @@ void MortevielleEngine::showIntroduction() { f3f8::aff50(false); _speechManager._mlec = 0; f3f8::checkForF8(142, false); - if (g_vm->shouldQuit()) + if (shouldQuit()) return; f3f8::ani50(); f3f8::checkForF8(143, true); - if (g_vm->shouldQuit()) + if (shouldQuit()) return; // TODO: Once music (Amiga/Atari ports) is implemented, only use the below delay if music is turned off @@ -619,7 +619,7 @@ void MortevielleEngine::mainGame() { // Loop to play the game do { playGame(); - if (g_vm->shouldQuit()) + if (shouldQuit()) return; } while (!_quitGame); } @@ -634,7 +634,7 @@ void MortevielleEngine::playGame() { // Loop handling actions until the game has to be quit, or show the lose or end sequence do { handleAction(); - if (g_vm->shouldQuit()) + if (shouldQuit()) return; } while (!((_quitGame) || (_endGame) || (_loseGame))); @@ -670,7 +670,7 @@ void MortevielleEngine::handleAction() { _menu.updateMenu(); prepareRoom(); _mouse.moveMouse(funct, inkey); - if (g_vm->shouldQuit()) + if (shouldQuit()) return; ++temps; } while (!((_menu._menuSelected) || (temps > lim) || (funct) || (_anyone))); @@ -739,7 +739,7 @@ void MortevielleEngine::handleAction() { handleOpcode(); if ((_controlMenu == 0) && (! _loseGame) && (! _endGame)) { - g_vm->_text.taffich(); + _text.taffich(); if (_destinationOk) { _destinationOk = false; drawPicture(); @@ -1759,7 +1759,7 @@ void MortevielleEngine::startDialog(int16 rep) { do { _speechManager.startSpeech(rep, haut[_caff - 69], 0); key = f3f8::waitForF3F8(); - if (g_vm->shouldQuit()) + if (shouldQuit()) return; } while (key != 66); hirs(); @@ -3395,7 +3395,7 @@ void MortevielleEngine::testKey(bool d) { prepareRoom(); quest = keyPressed(); _mouse.getMousePosition(x, y, click); - if (g_vm->shouldQuit()) + if (shouldQuit()) return; } while (!(quest || (click) || (d && _anyone))); if (quest) @@ -3631,7 +3631,7 @@ void MortevielleEngine::tfleche() { do { _mouse.moveMouse(qust, touch); - if (g_vm->shouldQuit()) + if (shouldQuit()) return; if (getMouseClick()) |