aboutsummaryrefslogtreecommitdiff
path: root/engines/sky/sky.cpp
diff options
context:
space:
mode:
authorChristopher Page2008-07-13 20:41:39 +0000
committerChristopher Page2008-07-13 20:41:39 +0000
commita6e1d6bd3dcdc1fae7832ffe26b4d774ec1fe6a3 (patch)
tree612ea0f89559780287b05b6cb122f681c290689d /engines/sky/sky.cpp
parente9c6b03fc73ad5d556eb56afed6e55ef1b0bef67 (diff)
downloadscummvm-rg350-a6e1d6bd3dcdc1fae7832ffe26b4d774ec1fe6a3.tar.gz
scummvm-rg350-a6e1d6bd3dcdc1fae7832ffe26b4d774ec1fe6a3.tar.bz2
scummvm-rg350-a6e1d6bd3dcdc1fae7832ffe26b4d774ec1fe6a3.zip
SKY works with the new GMM implementation, also updated gui/newgui.cpp and prevented pushEvent from pushing more than one EVENT_QUIT into the artificialEventQueue
svn-id: r33041
Diffstat (limited to 'engines/sky/sky.cpp')
-rw-r--r--engines/sky/sky.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/sky/sky.cpp b/engines/sky/sky.cpp
index 072d0c914e..421f6a5f08 100644
--- a/engines/sky/sky.cpp
+++ b/engines/sky/sky.cpp
@@ -353,7 +353,7 @@ int SkyEngine::go() {
introSkipped = !_skyIntro->doIntro(_floppyIntro);
}
- if (!_quit) {
+ if (!quit()) {
_skyLogic->initScreen0();
if (introSkipped)
_skyControl->restartGame();
@@ -363,7 +363,7 @@ int SkyEngine::go() {
_lastSaveTime = _system->getMillis();
uint32 delayCount = _system->getMillis();
- while (!_quit) {
+ while (!quit()) {
if (_debugger->isAttached())
_debugger->onFrame();
@@ -414,7 +414,7 @@ int SkyEngine::go() {
_skyMusic->stopMusic();
ConfMan.flushToDisk();
delay(1500);
- return _rtl;
+ return _eventMan->shouldRTL();
}
int SkyEngine::init() {
@@ -610,9 +610,6 @@ void SkyEngine::delay(int32 amount) {
_skyMouse->mouseMoved(event.mouse.x, event.mouse.y);
_skyMouse->buttonPressed(1);
break;
- case Common::EVENT_QUIT:
- _quit = true;
- break;
default:
break;
}