diff options
author | Torbjörn Andersson | 2008-05-23 17:54:47 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2008-05-23 17:54:47 +0000 |
commit | 4b06f42ff339cc79eb17aa75140987c1426e405a (patch) | |
tree | 277e4da99e55eaa6bb912b871afbeda9c5f6d3c3 /engines/sword2/mouse.cpp | |
parent | 18b3e3a4ba09a886e7ad78c5b3d17ece3ee97940 (diff) | |
download | scummvm-rg350-4b06f42ff339cc79eb17aa75140987c1426e405a.tar.gz scummvm-rg350-4b06f42ff339cc79eb17aa75140987c1426e405a.tar.bz2 scummvm-rg350-4b06f42ff339cc79eb17aa75140987c1426e405a.zip |
Initial implementation of pauseEngineIntern(). There are issues, though, since
the engine doesn't always allow the game to be paused, and some things (GUI,
movie cutscenes, credits, ...) are outside the main engine loop.
svn-id: r32232
Diffstat (limited to 'engines/sword2/mouse.cpp')
-rw-r--r-- | engines/sword2/mouse.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/engines/sword2/mouse.cpp b/engines/sword2/mouse.cpp index 44d2383f78..af4f121e96 100644 --- a/engines/sword2/mouse.cpp +++ b/engines/sword2/mouse.cpp @@ -1462,19 +1462,19 @@ void Mouse::checkPlayerActivity(uint32 seconds) { _vm->_logic->writeVar(RESULT, 0); } -void Mouse::pauseGame() { - // Make the mouse cursor normal. This is the only place where we are - // allowed to clear the luggage this way. +void Mouse::pauseEngine(bool pause) { + if (pause) { + // Make the mouse cursor normal. This is the only place where + // we are allowed to clear the luggage this way. - clearPointerText(); - setLuggageAnim(NULL, 0); - setMouse(0); - setMouseTouching(1); -} - -void Mouse::unpauseGame() { - if (_vm->_logic->readVar(OBJECT_HELD) && _realLuggageItem) - setLuggage(_realLuggageItem); + clearPointerText(); + setLuggageAnim(NULL, 0); + setMouse(0); + setMouseTouching(1); + } else { + if (_vm->_logic->readVar(OBJECT_HELD) && _realLuggageItem) + setLuggage(_realLuggageItem); + } } #define MOUSEFLASHFRAME 6 |