diff options
author | Eugene Sandulenko | 2016-09-13 10:21:02 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-13 10:21:02 +0200 |
commit | 35c57ee8c2fbed7491832333deacbd43be709b44 (patch) | |
tree | 682a36b32e0c179f31d66159bac90e180d9d689c /engines/fullpipe/scenes | |
parent | aeba8ef917b406cb1155ed567588838d621c9f67 (diff) | |
download | scummvm-rg350-35c57ee8c2fbed7491832333deacbd43be709b44.tar.gz scummvm-rg350-35c57ee8c2fbed7491832333deacbd43be709b44.tar.bz2 scummvm-rg350-35c57ee8c2fbed7491832333deacbd43be709b44.zip |
FULLPIPE: Fix red ball handling in scene29
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r-- | engines/fullpipe/scenes/scene29.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/fullpipe/scenes/scene29.cpp b/engines/fullpipe/scenes/scene29.cpp index aa1db836eb..6b68da00e0 100644 --- a/engines/fullpipe/scenes/scene29.cpp +++ b/engines/fullpipe/scenes/scene29.cpp @@ -131,7 +131,7 @@ void sceneHandler29_winArcade() { ani = g_vars->scene29_flyingRedBalls.front(); g_vars->scene29_flyingRedBalls.remove_at(0); - g_vars->scene29_greenBalls.push_back(ani); + g_vars->scene29_redBalls.push_back(ani); ani->hide(); } @@ -160,11 +160,11 @@ void sceneHandler29_shootGreen() { } void sceneHandler29_shootRed() { - if (g_vars->scene29_greenBalls.size()) { + if (g_vars->scene29_redBalls.size()) { int x = g_vars->scene29_shooter1->_ox - 101; int y = g_vars->scene29_shooter1->_oy - 14; - StaticANIObject *ani = g_vars->scene29_greenBalls.front(); - g_vars->scene29_greenBalls.remove_at(0); + StaticANIObject *ani = g_vars->scene29_redBalls.front(); + g_vars->scene29_redBalls.remove_at(0); ani->show1(x, y, MV_SHR_NORM, 0); ani->_priority = 5; @@ -362,7 +362,7 @@ void sceneHandler29_ballHitCheck() { if (x >= 147) { if (sceneHandler29_checkRedBallHit(ani, x)) { - g_vars->scene29_greenBalls.push_back(ani); + g_vars->scene29_redBalls.push_back(ani); g_vars->scene29_flyingRedBalls.remove_at(i); @@ -377,7 +377,7 @@ void sceneHandler29_ballHitCheck() { ani->setOXY(x, y); } } else { - g_vars->scene29_greenBalls.push_back(ani); + g_vars->scene29_redBalls.push_back(ani); ani->hide(); @@ -675,7 +675,7 @@ int sceneHandler29(ExCommand *cmd) { break; case MSG_SC29_SHOWLASTRED: - if (g_vars->scene29_redBalls.size()) { // original uses scene29_greenBalls which looks like a copy/paste error + if (g_vars->scene29_redBalls.size()) { // original checks size of the scene29_greenBalls which looks like a copy/paste error g_vars->scene29_redBalls.back()->show1(-1, -1, -1, 0); g_vars->scene29_redBalls.back()->startAnim(MV_SHR_HITASS, 0, -1); } |