aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-02 13:44:37 +0200
committerEugene Sandulenko2016-10-02 13:44:37 +0200
commit4ddf68ac9a58f528a5caf3f3ff3cbfd255f4e4dd (patch)
treec93bb91b0609a652a6f8be60580c3f36427f14d8 /engines/fullpipe/scenes
parent4acb6c886cacf5aa08d828508472c8ff7aa8947a (diff)
downloadscummvm-rg350-4ddf68ac9a58f528a5caf3f3ff3cbfd255f4e4dd.tar.gz
scummvm-rg350-4ddf68ac9a58f528a5caf3f3ff3cbfd255f4e4dd.tar.bz2
scummvm-rg350-4ddf68ac9a58f528a5caf3f3ff3cbfd255f4e4dd.zip
FULLPIPE: Fix ball collision detection in scene14
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene14.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp
index 8fd95b75b9..d5c0d4564a 100644
--- a/engines/fullpipe/scenes/scene14.cpp
+++ b/engines/fullpipe/scenes/scene14.cpp
@@ -807,9 +807,7 @@ int sceneHandler14(ExCommand *cmd) {
case 29:
if (g_vars->scene14_arcadeIsOn) {
- uint32 pixel;
-
- if (g_vars->scene14_dudeCanKick && g_fp->_aniMan->getPixelAtPos(cmd->_sceneClickX, cmd->_sceneClickY, &pixel) && !g_fp->_aniMan->_movement) {
+ if (g_vars->scene14_dudeCanKick && g_fp->_aniMan->isPixelHitAtPos(cmd->_sceneClickX, cmd->_sceneClickY) && !g_fp->_aniMan->_movement) {
sceneHandler14_dudeDecline();
break;
}