diff options
author | Christopher Page | 2008-08-06 21:44:43 +0000 |
---|---|---|
committer | Christopher Page | 2008-08-06 21:44:43 +0000 |
commit | 78159c34a1a7de551c7a3b171565ec36656347b6 (patch) | |
tree | b818ef6012af52d57351b86a3d406552ce02ffba /engines/tinsel/tinsel.cpp | |
parent | 8bcc4619ec8750266328367f910a4d1fea99eb43 (diff) | |
download | scummvm-rg350-78159c34a1a7de551c7a3b171565ec36656347b6.tar.gz scummvm-rg350-78159c34a1a7de551c7a3b171565ec36656347b6.tar.bz2 scummvm-rg350-78159c34a1a7de551c7a3b171565ec36656347b6.zip |
Added RTL feature to Tinsel
svn-id: r33671
Diffstat (limited to 'engines/tinsel/tinsel.cpp')
-rw-r--r-- | engines/tinsel/tinsel.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/engines/tinsel/tinsel.cpp b/engines/tinsel/tinsel.cpp index 1f56385283..16e477c947 100644 --- a/engines/tinsel/tinsel.cpp +++ b/engines/tinsel/tinsel.cpp @@ -638,7 +638,6 @@ TinselEngine::TinselEngine(OSystem *syst, const TinselGameDescription *gameDesc) _mousePos.y = 0; _keyHandler = NULL; _dosPlayerDir = 0; - quitFlag = false; } TinselEngine::~TinselEngine() { @@ -678,6 +677,8 @@ int TinselEngine::init() { #if 1 // FIXME: The following is taken from RestartGame(). // It may have to be adjusted a bit + CountOut = 1; + RebootCursor(); RebootDeadTags(); RebootMovers(); @@ -755,7 +756,7 @@ int TinselEngine::go() { // Foreground loop - while (!quitFlag) { + while (!quit()) { assert(_console); if (_console->isAttached()) _console->onFrame(); @@ -789,7 +790,7 @@ int TinselEngine::go() { // Write configuration WriteConfig(); - return 0; + return _eventMan->shouldRTL(); } @@ -819,10 +820,6 @@ bool TinselEngine::pollEvent() { // Handle the various kind of events switch (event.type) { - case Common::EVENT_QUIT: - quitFlag = true; - break; - case Common::EVENT_LBUTTONDOWN: case Common::EVENT_LBUTTONUP: case Common::EVENT_RBUTTONDOWN: |