aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes/scene09.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/fullpipe/scenes/scene09.cpp')
-rw-r--r--engines/fullpipe/scenes/scene09.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/fullpipe/scenes/scene09.cpp b/engines/fullpipe/scenes/scene09.cpp
index 613149930d..3086cf0cfc 100644
--- a/engines/fullpipe/scenes/scene09.cpp
+++ b/engines/fullpipe/scenes/scene09.cpp
@@ -486,7 +486,7 @@ void sceneHandler09_ballExplode(Ball *ball) {
MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC9_BALLEXPLODE), 0, 1);
- mq->replaceKeyCode(-1, ball->ani->_okeyCode);
+ mq->setParamInt(-1, ball->ani->_okeyCode);
if (!mq->chain(ball->ani))
delete mq;
@@ -723,15 +723,15 @@ int sceneHandler09(ExCommand *cmd) {
}
if (g_vars->scene09_dudeIsOnLadder && g_fp->_currentScene->getPictureObjectIdAtPos(cmd->_sceneClickX, cmd->_sceneClickY) == PIC_SC9_LADDER_R
- && !cmd->_keyCode && !g_fp->_aniMan->_movement) {
+ && !cmd->_param && !g_fp->_aniMan->_movement) {
handleObjectInteraction(g_fp->_aniMan, g_fp->_currentScene->getPictureObjectById(PIC_SC9_LADDER_R, 0), 0);
}
- 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);
}