From f9f835e08092f7dbbc887e2164748bfd9ffcc704 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 26 May 2017 21:00:31 -0400 Subject: TITANIC: Fix orientation threshold check in CStarControlSub24 --- engines/titanic/star_control/star_control_sub24.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/titanic/star_control') diff --git a/engines/titanic/star_control/star_control_sub24.cpp b/engines/titanic/star_control/star_control_sub24.cpp index d7f6b7e871..4ceb82f7fc 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 { -- cgit v1.2.3