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

dreammaster dreammaster at scummvm.org
Mon May 29 04:04:42 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:
a4fca68217 TITANIC: Fix placement of stars in photo starfield


Commit: a4fca682172c4b9be36a0d54a2204157bb249d2f
    https://github.com/scummvm/scummvm/commit/a4fca682172c4b9be36a0d54a2204157bb249d2f
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-05-28T22:04:29-04:00

Commit Message:
TITANIC: Fix placement of stars in photo starfield

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


diff --git a/engines/titanic/star_control/base_stars.cpp b/engines/titanic/star_control/base_stars.cpp
index 12fa566..dddc399 100644
--- a/engines/titanic/star_control/base_stars.cpp
+++ b/engines/titanic/star_control/base_stars.cpp
@@ -264,8 +264,8 @@ void CBaseStars::draw2(CSurfaceArea *surfaceArea, CStarCamera *camera, CStarClos
 		if (tempZ <= minVal)
 			continue;
 
-		tempY = vector._x * pose._row1._y + vector._y * pose._row2._y + vector._z * pose._row3._y + vector._y;
-		tempX = vector._x * pose._row1._x + vector._y * pose._row2._x + vector._z * pose._row3._x + vector._x;
+		tempY = vector._x * pose._row1._y + vector._y * pose._row2._y + vector._z * pose._row3._y + pose._vector._y;
+		tempX = vector._x * pose._row1._x + vector._y * pose._row2._x + vector._z * pose._row3._x + pose._vector._x;
 		total2 = tempY * tempY + tempX * tempX + tempZ * tempZ;
 
 		if (total2 < 1.0e12) {





More information about the Scummvm-git-logs mailing list