diff options
author | Vincent Hamm | 2012-08-13 21:35:49 -0700 |
---|---|---|
committer | Vincent Hamm | 2012-08-13 21:38:24 -0700 |
commit | ca54d69addbbb4257514b007a656138c8f60c4cd (patch) | |
tree | fe4a77876bd16671c80401cd414adadbd4554a3a /engines/cine | |
parent | 2fd8bae31994e5581d0ef43da439d01ddd0d1ef5 (diff) | |
download | scummvm-rg350-ca54d69addbbb4257514b007a656138c8f60c4cd.tar.gz scummvm-rg350-ca54d69addbbb4257514b007a656138c8f60c4cd.tar.bz2 scummvm-rg350-ca54d69addbbb4257514b007a656138c8f60c4cd.zip |
Cine: Fix swimming sequence by allowing mouse click to be held down
Diffstat (limited to 'engines/cine')
-rw-r--r-- | engines/cine/main_loop.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/cine/main_loop.cpp b/engines/cine/main_loop.cpp index 971830ce8f..7cd3cac3d6 100644 --- a/engines/cine/main_loop.cpp +++ b/engines/cine/main_loop.cpp @@ -56,6 +56,12 @@ static void processEvent(Common::Event &event) { case Common::EVENT_RBUTTONDOWN: mouseRight = 1; break; + case Common::EVENT_LBUTTONUP: + mouseLeft = 0; + break; + case Common::EVENT_RBUTTONUP: + mouseRight = 0; + break; case Common::EVENT_MOUSEMOVE: break; case Common::EVENT_KEYDOWN: @@ -214,8 +220,6 @@ void manageEvents() { g_sound->update(); mouseData.left = mouseLeft; mouseData.right = mouseRight; - mouseLeft = 0; - mouseRight = 0; } void getMouseData(uint16 param, uint16 *pButton, uint16 *pX, uint16 *pY) { @@ -311,6 +315,7 @@ void CineEngine::mainLoop(int bootScriptIdx) { // HACK: Force amount of oxygen left to maximum during Operation Stealth's first arcade sequence. // This makes it possible to pass the arcade sequence for now. // FIXME: Remove the hack and make the first arcade sequence normally playable. + /* if (g_cine->getGameType() == Cine::GType_OS) { Common::String bgName(renderer->getBgName()); // Check if the background is one of the three backgrounds @@ -320,7 +325,7 @@ void CineEngine::mainLoop(int bootScriptIdx) { // Force the amount of oxygen left to the maximum. g_cine->_objectTable[oxygenObjNum].x = maxOxygen; } - } + }*/ // HACK: In Operation Stealth after the first arcade sequence jump player's position to avoid getting stuck. // After the first arcade sequence the player comes up stairs from |