[Scummvm-git-logs] scummvm master -> ad2231a00ad77279f196a3c5b4df99b0adc707e7

sev- sev at scummvm.org
Mon Sep 12 22:06:58 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
ad2231a00a FULLPIPE: Fix bal shooting logic in scene29


Commit: ad2231a00ad77279f196a3c5b4df99b0adc707e7
    https://github.com/scummvm/scummvm/commit/ad2231a00ad77279f196a3c5b4df99b0adc707e7
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-09-12T22:06:47+02:00

Commit Message:
FULLPIPE: Fix bal shooting logic in scene29

Changed paths:
    engines/fullpipe/scenes/scene29.cpp



diff --git a/engines/fullpipe/scenes/scene29.cpp b/engines/fullpipe/scenes/scene29.cpp
index 4da1a31..f977d97 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);





More information about the Scummvm-git-logs mailing list