TITANIC: Fix orientation threshold check in CStarControlSub24

This commit is contained in:
Paul Gilbert 2017-05-26 21:00:31 -04:00
parent d9807b0fca
commit f9f835e080

View File

@ -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 {