diff options
author | Paul Gilbert | 2017-05-26 21:00:31 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-05-26 21:00:31 -0400 |
commit | f9f835e08092f7dbbc887e2164748bfd9ffcc704 (patch) | |
tree | bcc6180be41c42cb56d7519b58122492de194ca7 /engines/titanic/star_control | |
parent | d9807b0fca2fa8e139407ec91bb0e242e01ba82d (diff) | |
download | scummvm-rg350-f9f835e08092f7dbbc887e2164748bfd9ffcc704.tar.gz scummvm-rg350-f9f835e08092f7dbbc887e2164748bfd9ffcc704.tar.bz2 scummvm-rg350-f9f835e08092f7dbbc887e2164748bfd9ffcc704.zip |
TITANIC: Fix orientation threshold check in CStarControlSub24
Diffstat (limited to 'engines/titanic/star_control')
-rw-r--r-- | engines/titanic/star_control/star_control_sub24.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |