diff options
author | Eugene Sandulenko | 2016-09-07 10:36:51 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-07 10:36:51 +0200 |
commit | 5dddde199fef11650f635c666dd797df011fcdb3 (patch) | |
tree | 89a77d6b2fdda0049c27a3aeeb6651d0921b417e /engines/fullpipe/scenes/scene09.cpp | |
parent | b4153bef61519bbb16e99eda89d2faae8bf10c73 (diff) | |
download | scummvm-rg350-5dddde199fef11650f635c666dd797df011fcdb3.tar.gz scummvm-rg350-5dddde199fef11650f635c666dd797df011fcdb3.tar.bz2 scummvm-rg350-5dddde199fef11650f635c666dd797df011fcdb3.zip |
FULLPIPE: Further work on the hangers in scene09
Diffstat (limited to 'engines/fullpipe/scenes/scene09.cpp')
-rw-r--r-- | engines/fullpipe/scenes/scene09.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/fullpipe/scenes/scene09.cpp b/engines/fullpipe/scenes/scene09.cpp index f9cf58d9df..aaa430d077 100644 --- a/engines/fullpipe/scenes/scene09.cpp +++ b/engines/fullpipe/scenes/scene09.cpp @@ -365,19 +365,19 @@ void sceneHandler09_checkHangerCollide() { } LABEL_11: - int pixel; + bool hit; for (int i = 0; i < g_vars->scene09_numMovingHangers; i++) { for (int j = 0; j < 4; j++) { - g_vars->scene09_hangers[i]->ani->getPixelAtPos(newx + g_vars->scene09_hangerOffsets[j].x, ball->_oy + g_vars->scene09_hangerOffsets[j].y, &pixel); + hit = g_vars->scene09_hangers[i]->ani->getPixelAtPos(newx + g_vars->scene09_hangerOffsets[j].x, ball->_oy + g_vars->scene09_hangerOffsets[j].y, 0, true); - if (pixel) { + if (hit) { sceneHandler09_ballExplode(b); break; } } - if (pixel) + if (hit) break; } } |