From 4ddf68ac9a58f528a5caf3f3ff3cbfd255f4e4dd Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 2 Oct 2016 13:44:37 +0200 Subject: FULLPIPE: Fix ball collision detection in scene14 --- engines/fullpipe/scenes/scene14.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines/fullpipe') 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; } -- cgit v1.2.3