aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-01 20:45:00 +0200
committerEugene Sandulenko2016-10-01 20:45:00 +0200
commit50753f292a1af45b05871962168a1503e5e03ab7 (patch)
treeda62a62cdbd48ba638c899ff12200e3b951653ff /engines
parentb624e4e7b75763c35c7bb0c8df00eb6845553475 (diff)
downloadscummvm-rg350-50753f292a1af45b05871962168a1503e5e03ab7.tar.gz
scummvm-rg350-50753f292a1af45b05871962168a1503e5e03ab7.tar.bz2
scummvm-rg350-50753f292a1af45b05871962168a1503e5e03ab7.zip
FULLPIPE: Fix cursor handling in scene25
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/scenes/scene25.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/fullpipe/scenes/scene25.cpp b/engines/fullpipe/scenes/scene25.cpp
index 9bc8f412f1..991b29f12d 100644
--- a/engines/fullpipe/scenes/scene25.cpp
+++ b/engines/fullpipe/scenes/scene25.cpp
@@ -100,10 +100,10 @@ int scene25_updateCursor() {
int inv = getGameLoaderInventory()->getSelectedItemId();
if (g_fp->_objectIdAtCursor == ANI_WATER25) {
- if ((g_vars->scene25_boardIsSelectable && (!inv || inv == ANI_INV_BOARD)) || (g_vars->scene25_dudeIsOnBoard && (inv == ANI_INV_LOPAT || !inv)))
- g_fp->_cursorId = (g_fp->_cursorId != PIC_CSR_DEFAULT) ? PIC_CSR_ITN : PIC_CSR_ITN_INV; // FIXME check
+ if (g_vars->scene25_boardIsSelectable && ((!inv || inv == ANI_INV_BOARD) || (g_vars->scene25_dudeIsOnBoard && (inv == ANI_INV_LOPAT || !inv))))
+ g_fp->_cursorId = (g_fp->_cursorId != PIC_CSR_DEFAULT) ? PIC_CSR_ITN_INV : PIC_CSR_ITN;
} else if (g_fp->_objectIdAtCursor == ANI_BOARD25 && (!inv || inv == ANI_INV_SWAB || inv == ANI_INV_BROOM || inv == ANI_INV_LOPAT)) {
- g_fp->_cursorId = (g_fp->_cursorId != PIC_CSR_DEFAULT) ? PIC_CSR_ITN : PIC_CSR_ITN_INV;
+ g_fp->_cursorId = (g_fp->_cursorId != PIC_CSR_DEFAULT) ? PIC_CSR_ITN_INV : PIC_CSR_ITN;
}
}