aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-02 13:44:57 +0200
committerEugene Sandulenko2016-10-02 13:44:57 +0200
commit405c4e04157cdaa5ddeb75d29c4547682925f580 (patch)
tree64304a08929fe571a8e1bf1a243749d27d053d12 /engines/fullpipe
parent4ddf68ac9a58f528a5caf3f3ff3cbfd255f4e4dd (diff)
downloadscummvm-rg350-405c4e04157cdaa5ddeb75d29c4547682925f580.tar.gz
scummvm-rg350-405c4e04157cdaa5ddeb75d29c4547682925f580.tar.bz2
scummvm-rg350-405c4e04157cdaa5ddeb75d29c4547682925f580.zip
FULLPIPE: Improve collision detection in scene06
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/scenes/scene06.cpp10
1 files changed, 3 insertions, 7 deletions
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();