aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-05-14 12:15:37 +0200
committerEugene Sandulenko2014-05-14 12:15:37 +0200
commitde1df05b1f47abe4c7091c14bbd4d46ef542c9bb (patch)
treedecd24846a1a3cc232ccb3b59135fd7a2908321e /engines
parentcbe41c94f7cdeb76d40dbef4f5e293f32866d433 (diff)
downloadscummvm-rg350-de1df05b1f47abe4c7091c14bbd4d46ef542c9bb.tar.gz
scummvm-rg350-de1df05b1f47abe4c7091c14bbd4d46ef542c9bb.tar.bz2
scummvm-rg350-de1df05b1f47abe4c7091c14bbd4d46ef542c9bb.zip
FULLPIPE: Fix bug in global_messageHandler3() which prevented mouse handling
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/messagehandlers.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/fullpipe/messagehandlers.cpp b/engines/fullpipe/messagehandlers.cpp
index 15aa78d342..d4f79d1dd8 100644
--- a/engines/fullpipe/messagehandlers.cpp
+++ b/engines/fullpipe/messagehandlers.cpp
@@ -392,12 +392,10 @@ int global_messageHandler3(ExCommand *cmd) {
}
return result;
case 29:
- if (!g_fp->_currentScene)
- return result;
-
- if (g_fp->_gameLoader->_interactionController->_flag24) {
+ if (g_fp->_gameLoader->_interactionController->_flag24 && g_fp->_currentScene) {
ani = g_fp->_currentScene->getStaticANIObjectAtPos(cmd->_sceneClickX, cmd->_sceneClickY);
ani2 = g_fp->_currentScene->getStaticANIObject1ById(g_fp->_gameLoader->_field_FA, -1);
+
if (ani) {
if (g_fp->_msgObjectId2 == ani->_id && g_fp->_msgId == ani->_okeyCode) {
cmd->_messageKind = 0;