From 405c4e04157cdaa5ddeb75d29c4547682925f580 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 2 Oct 2016 13:44:57 +0200 Subject: FULLPIPE: Improve collision detection in scene06 --- engines/fullpipe/scenes/scene06.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/scenes/scene06.cpp b/engines/fullpipe/scenes/scene06.cpp index 9b483a0b3e..5fab4b5862 100644 --- a/engines/fullpipe/scenes/scene06.cpp +++ b/engines/fullpipe/scenes/scene06.cpp @@ -474,15 +474,11 @@ void sceneHandler06_catchBall() { } void sceneHandler06_checkBallTarget(int par) { - uint32 pixel; - if (g_vars->scene06_ballY <= 475) { - if (g_vars->scene06_mumsy->getPixelAtPos(g_vars->scene06_ballX, g_vars->scene06_ballY, &pixel)) { - if (pixel) { - chainObjQueue(g_vars->scene06_mumsy, QU_MOM_JUMPBK, 0); + if (g_vars->scene06_mumsy->isPixelHitAtPos(g_vars->scene06_ballX, g_vars->scene06_ballY)) { + chainObjQueue(g_vars->scene06_mumsy, QU_MOM_JUMPBK, 0); - sceneHandler06_catchBall(); - } + sceneHandler06_catchBall(); } } else { sceneHandler06_fallBall(); -- cgit v1.2.3