diff options
author | Retro-Junk | 2016-10-01 15:57:30 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-01 15:00:29 +0200 |
commit | 60326023b54545ead2437965a390b0ac3a0c7cba (patch) | |
tree | f1ba5032021b75f3a4ab93fd62355e5b68564e6a /engines/fullpipe | |
parent | e61cb2285f33656ebeafd76e0cd7f74f0f2dd965 (diff) | |
download | scummvm-rg350-60326023b54545ead2437965a390b0ac3a0c7cba.tar.gz scummvm-rg350-60326023b54545ead2437965a390b0ac3a0c7cba.tar.bz2 scummvm-rg350-60326023b54545ead2437965a390b0ac3a0c7cba.zip |
FULLPIPE: Scene26: Fix valves interaction
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/scenes/scene26.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/fullpipe/scenes/scene26.cpp b/engines/fullpipe/scenes/scene26.cpp index d183ee9da8..e36d907321 100644 --- a/engines/fullpipe/scenes/scene26.cpp +++ b/engines/fullpipe/scenes/scene26.cpp @@ -241,7 +241,7 @@ void sceneHandler26_animateVents(StaticANIObject *ani) { } if (qId) { - MessageQueue *mq = g_fp->_currentScene->getMessageQueueById(qId); + MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(qId), 0, 0); mq->setFlags(mq->getFlags() | 1); mq->chain(0); @@ -249,7 +249,7 @@ void sceneHandler26_animateVents(StaticANIObject *ani) { } void sceneHandler26_clickVent(StaticANIObject *ani, ExCommand *cmd) { - if (ani->_odelay || g_fp->getObjectState(sO_Hatch_26) == g_fp->getObjectEnumState(sO_Hatch_26, sO_Opened)) { + if (ani->_odelay || g_fp->getObjectState(sO_Hatch_26) != g_fp->getObjectEnumState(sO_Hatch_26, sO_Opened)) { if (g_fp->_aniMan->isIdle() && !(g_fp->_aniMan->_flags & 0x100)) { g_vars->scene26_activeVent = ani; |