diff options
Diffstat (limited to 'engines/fullpipe/scenes/scene22.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene22.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/fullpipe/scenes/scene22.cpp b/engines/fullpipe/scenes/scene22.cpp index 4e7c438cba..3af8bad456 100644 --- a/engines/fullpipe/scenes/scene22.cpp +++ b/engines/fullpipe/scenes/scene22.cpp @@ -166,7 +166,7 @@ void sceneHandler22_stoolLogic(ExCommand *cmd) { int manId; if (g_fp->_aniMan->isIdle() && !(g_fp->_aniMan->_flags & 0x100)) { - if (cmd->_keyCode == ANI_INV_STOOL) { + if (cmd->_param == ANI_INV_STOOL) { if (abs(841 - g_fp->_aniMan->_ox) <= 1) { if (abs(449 - g_fp->_aniMan->_oy) <= 1) { chainQueue(QU_SC22_PUTSTOOL, 1); @@ -178,7 +178,7 @@ void sceneHandler22_stoolLogic(ExCommand *cmd) { goto LABEL_13; } - if (cmd->_keyCode == ANI_INV_BOX) { + if (cmd->_param == ANI_INV_BOX) { ani = g_fp->_currentScene->getStaticANIObject1ById(ANI_TABURETTE, -1); if (!ani || !(ani->_flags & 4)) { if (abs(841 - g_fp->_aniMan->_ox) <= 1) { @@ -202,7 +202,7 @@ void sceneHandler22_stoolLogic(ExCommand *cmd) { return; } } else { - if (cmd->_keyCode) + if (cmd->_param) return; if (g_vars->scene22_dudeIsOnStool) { @@ -342,11 +342,11 @@ int sceneHandler22(ExCommand *cmd) { } if (!g_vars->scene22_dudeIsOnStool) { - if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_keyCode)) { + if (!ani || !canInteractAny(g_fp->_aniMan, ani, cmd->_param)) { int picId = g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY); PictureObject *pic = g_fp->_currentScene->getPictureObjectById(picId, 0); - if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_keyCode)) { + if (!pic || !canInteractAny(g_fp->_aniMan, pic, cmd->_param)) { if ((g_fp->_sceneRect.right - cmd->_sceneClickX < 47 && g_fp->_sceneRect.right < g_fp->_sceneWidth - 1) || (cmd->_sceneClickX - g_fp->_sceneRect.left < 47 && g_fp->_sceneRect.left > 0)) { g_fp->processArcade(cmd); |