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

dreammaster dreammaster at scummvm.org
Tue Apr 11 04:14:21 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:
aab8803ade TITANIC: If statement fix in CStarCloseUp draw


Commit: aab8803ade6244d22625939505ca7b20482b6d34
    https://github.com/scummvm/scummvm/commit/aab8803ade6244d22625939505ca7b20482b6d34
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-04-10T22:14:10-04:00

Commit Message:
TITANIC: If statement fix in CStarCloseUp draw

Changed paths:
    engines/titanic/star_control/star_closeup.cpp
    engines/titanic/star_control/star_closeup.h


diff --git a/engines/titanic/star_control/star_closeup.cpp b/engines/titanic/star_control/star_closeup.cpp
index 6ed0b90..e990bc7 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 d07b17b..4063ea9 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() {}
 	};
 
 	/**





More information about the Scummvm-git-logs mailing list