From 985f8a3720873b6bfd2bd2cb5bcda78b24629e84 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 24 Feb 2017 23:29:54 -0500 Subject: TITANIC: Fixes for coordinates init in CStarPoints1 --- engines/titanic/star_control/star_points1.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'engines') diff --git a/engines/titanic/star_control/star_points1.cpp b/engines/titanic/star_control/star_points1.cpp index 6e698d61f7..a8462389c3 100644 --- a/engines/titanic/star_control/star_points1.cpp +++ b/engines/titanic/star_control/star_points1.cpp @@ -42,16 +42,16 @@ bool CStarPoints1::initialize() { FVector &entry = _data[idx]; // Get the next set of values - double v1 = stream->readUint32LE(); - double v2 = stream->readUint32LE(); + double v1 = stream->readSint32LE(); + double v2 = stream->readSint32LE(); stream->readUint32LE(); - v1 *= 0.0099999998 * FACTOR; - v2 *= 0.015 * FACTOR; + v1 *= 0.015 * FACTOR; + v2 *= 0.0099999998 * FACTOR; entry._x = cos(v2) * 3000000.0 * cos(v1); - entry._y = sin(v2) * 3000000.0 * cos(v1); - entry._z = sin(v1) * 3000000.0; + entry._y = sin(v1) * 3000000.0 * cos(v2); + entry._z = sin(v2) * 3000000.0; } return true; -- cgit v1.2.3