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

dreammaster dreammaster at scummvm.org
Sat May 27 03:00:41 CEST 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:
f9f835e080 TITANIC: Fix orientation threshold check in CStarControlSub24


Commit: f9f835e08092f7dbbc887e2164748bfd9ffcc704
    https://github.com/scummvm/scummvm/commit/f9f835e08092f7dbbc887e2164748bfd9ffcc704
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-05-26T21:00:31-04:00

Commit Message:
TITANIC: Fix orientation threshold check in CStarControlSub24

Changed paths:
    engines/titanic/star_control/star_control_sub24.cpp


diff --git a/engines/titanic/star_control/star_control_sub24.cpp b/engines/titanic/star_control/star_control_sub24.cpp
index d7f6b7e..4ceb82f 100644
--- a/engines/titanic/star_control/star_control_sub24.cpp
+++ b/engines/titanic/star_control/star_control_sub24.cpp
@@ -107,7 +107,7 @@ int CStarControlSub24::proc5(CErrorCode &errorCode, FVector &pos, FMatrix &orien
 
 	double val = orientation._row3._x * v3._x + orientation._row3._y * v3._y + orientation._row3._z * v3._z;
 	bool flag = false;
-	if (val > 1.0) {
+	if (val < 1.0) {
 		if (val >= 1.0 - 1.0e-10)
 			flag = true;
 	} else {





More information about the Scummvm-git-logs mailing list