From ad2231a00ad77279f196a3c5b4df99b0adc707e7 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 12 Sep 2016 22:06:16 +0200 Subject: FULLPIPE: Fix bal shooting logic in scene29 --- engines/fullpipe/scenes/scene29.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/fullpipe') diff --git a/engines/fullpipe/scenes/scene29.cpp b/engines/fullpipe/scenes/scene29.cpp index 4da1a31266..f977d97008 100644 --- a/engines/fullpipe/scenes/scene29.cpp +++ b/engines/fullpipe/scenes/scene29.cpp @@ -549,7 +549,7 @@ void sceneHandler29_manRideBack() { void sceneHandler29_shoot() { if (g_vars->scene29_arcadeIsOn && g_vars->scene29_manX < 1310) { - if (g_fp->_rnd->getRandomNumber(1) || g_vars->scene29_shooter1->_movement || g_vars->scene29_shooter1->_statics->_staticsId != ST_STR1_RIGHT) { + if (g_fp->_rnd->getRandomNumber(32767) <= 16383|| g_vars->scene29_shooter1->_movement || g_vars->scene29_shooter1->_statics->_staticsId != ST_STR1_RIGHT) { if (!g_vars->scene29_shooter2->_movement && g_vars->scene29_shooter2->_statics->_staticsId == ST_STR2_RIGHT) { if (g_vars->scene29_shooter2->_flags & 4) { g_vars->scene29_shooter2->startAnim(MV_STR2_SHOOT, 0, -1); -- cgit v1.2.3