diff options
author | Retro-Junk | 2016-10-01 18:02:24 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-01 20:28:54 +0200 |
commit | b624e4e7b75763c35c7bb0c8df00eb6845553475 (patch) | |
tree | 1af816307579f40e0090a10187bd7f0ccfcffe6b /engines | |
parent | 5e814b6d36edc1e84ea47b79a181120b799a119f (diff) | |
download | scummvm-rg350-b624e4e7b75763c35c7bb0c8df00eb6845553475.tar.gz scummvm-rg350-b624e4e7b75763c35c7bb0c8df00eb6845553475.tar.bz2 scummvm-rg350-b624e4e7b75763c35c7bb0c8df00eb6845553475.zip |
FULLPIPE: Scene14: Fix ball game
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/scenes/scene14.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp index f6841a8bbe..8fd95b75b9 100644 --- a/engines/fullpipe/scenes/scene14.cpp +++ b/engines/fullpipe/scenes/scene14.cpp @@ -622,15 +622,12 @@ void sceneHandler14_arcadeLogic() { } void sceneHandler14_animateBall() { - int x = g_vars->scene14_ballDeltaX + g_vars->scene14_ballX; - int y = g_vars->scene14_ballDeltaY + g_vars->scene14_ballY; - - g_vars->scene14_ballX += g_vars->scene14_ballDeltaX; - g_vars->scene14_ballY += g_vars->scene14_ballDeltaY; + int x = g_vars->scene14_ballX += g_vars->scene14_ballDeltaX; + int y = g_vars->scene14_ballY += g_vars->scene14_ballDeltaY; g_vars->scene14_ballDeltaY++; - if (g_vars->scene14_ballDeltaY - 1 + g_vars->scene14_ballY > 517) { + if (g_vars->scene14_ballY <= 517) { if (x <= g_vars->scene14_dudeX - 16 ) { if ( g_vars->scene14_ballDeltaX >= 0 || x >= g_vars->scene14_grandmaX + 65 || x <= g_vars->scene14_grandmaX - 135 || y <= g_vars->scene14_grandmaY - 102 ) { if (g_vars->scene14_flyingBall->_movement) |