[Scummvm-git-logs] scummvm master -> 1f373283a82b7dc7c2f0bf93fb0eda705c1d4082

wjp wjp at usecode.org
Sun Apr 2 19:27:33 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:
1f373283a8 TITANIC: Fix warnings


Commit: 1f373283a82b7dc7c2f0bf93fb0eda705c1d4082
    https://github.com/scummvm/scummvm/commit/1f373283a82b7dc7c2f0bf93fb0eda705c1d4082
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2017-04-02T19:26:34+02:00

Commit Message:
TITANIC: Fix warnings

Changed paths:
    engines/titanic/star_control/base_star.cpp


diff --git a/engines/titanic/star_control/base_star.cpp b/engines/titanic/star_control/base_star.cpp
index ad94912..0652a8b 100644
--- a/engines/titanic/star_control/base_star.cpp
+++ b/engines/titanic/star_control/base_star.cpp
@@ -350,9 +350,9 @@ void CBaseStar::draw3(CSurfaceArea *surfaceArea, CStarControlSub12 *sub12, CStar
 		if (tempZ <= minVal)
 			continue;
 
-		double tempY = vector._x * sub6._row1._y + vector._y * sub6._row2._y + vector._z * sub6._row3._y + sub6._vector._y;
-		double tempX = vector._x * sub6._row1._x + vector._y * sub6._row2._x + vector._z * sub6._row3._x + sub6._vector._x;
-		double total2 = tempY * tempY + tempX * tempX + tempZ * tempZ;
+		tempY = vector._x * sub6._row1._y + vector._y * sub6._row2._y + vector._z * sub6._row3._y + sub6._vector._y;
+		tempX = vector._x * sub6._row1._x + vector._y * sub6._row2._x + vector._z * sub6._row3._x + sub6._vector._x;
+		total2 = tempY * tempY + tempX * tempX + tempZ * tempZ;
 
 		if (total2 < 1.0e12) {
 			sub5->proc2(&sub6, vector, centroid._x, centroid._y, total2,





More information about the Scummvm-git-logs mailing list