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

dreammaster dreammaster at scummvm.org
Tue Jan 10 01:36:21 CET 2017


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:
ec8845a6bf TITANIC: Fix Barbot's introduction spiel


Commit: ec8845a6bfbf2f3ea3b8d64a860de1bb3e745178
    https://github.com/scummvm/scummvm/commit/ec8845a6bfbf2f3ea3b8d64a860de1bb3e745178
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-01-09T19:36:13-05:00

Commit Message:
TITANIC: Fix Barbot's introduction spiel

Changed paths:
    engines/titanic/true_talk/barbot_script.cpp


diff --git a/engines/titanic/true_talk/barbot_script.cpp b/engines/titanic/true_talk/barbot_script.cpp
index ad10f5a..14e92e7 100644
--- a/engines/titanic/true_talk/barbot_script.cpp
+++ b/engines/titanic/true_talk/barbot_script.cpp
@@ -748,7 +748,7 @@ done:
 				return 2;
 			}
 
-			addResponse(getDialogueId(250082 + getRandomNumber(100) <= 89 ? 128 : 0));
+			addResponse(getDialogueId(250082 + (getRandomNumber(100) <= 89 ? 128 : 0)));
 		}
 	}
 
@@ -776,7 +776,7 @@ ScriptChangedResult BarbotScript::scriptChanged(const TTroomScript *roomScript,
 			resetFlags();
 		} else {
 			if (!getValue(28) || !fn10(true)) {
-				addResponse(getDialogueId(251627 + getValue(28) ? -1034 : 0));
+				addResponse(getDialogueId(251627 + (getValue(28) ? -1034 : 0)));
 				applyResponse();
 			}
 





More information about the Scummvm-git-logs mailing list