From aab8803ade6244d22625939505ca7b20482b6d34 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 10 Apr 2017 22:14:10 -0400 Subject: TITANIC: If statement fix in CStarCloseUp draw --- engines/titanic/star_control/star_closeup.cpp | 2 +- engines/titanic/star_control/star_closeup.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/titanic/star_control/star_closeup.cpp b/engines/titanic/star_control/star_closeup.cpp index 6ed0b909c5..e990bc7b1a 100644 --- a/engines/titanic/star_control/star_closeup.cpp +++ b/engines/titanic/star_control/star_closeup.cpp @@ -205,7 +205,7 @@ void CStarCloseup::draw(const FPose &pose, const FVector &vector, const FVector double f41, f42, f43, f44, f45, f46; FVector tempV; - if (vector2._z >= 6.0e9) { + if (vector2._z < 6.0e9) { int count, start; if (vector._x != 0.0 && (vector._y != 0.0 || vector._z != 0.0)) { // WORKAROUND: Ignoring non-sensical randSeed((int)vector._x); diff --git a/engines/titanic/star_control/star_closeup.h b/engines/titanic/star_control/star_closeup.h index d07b17bd2f..4063ea9662 100644 --- a/engines/titanic/star_control/star_closeup.h +++ b/engines/titanic/star_control/star_closeup.h @@ -70,9 +70,8 @@ class CStarCloseup { struct GridEntry : public FVector { FPoint _position; - int _field14; - GridEntry() : FVector(), _field14(0) {} + GridEntry() : FVector() {} }; /** -- cgit v1.2.3