diff options
author | Paul Gilbert | 2017-02-24 23:29:54 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-02-24 23:29:54 -0500 |
commit | 985f8a3720873b6bfd2bd2cb5bcda78b24629e84 (patch) | |
tree | 742467b4cc531fa60109331bbc3426d4592baebc | |
parent | 32965e44e3fdc5fca13df7d917624a8f1ead6b69 (diff) | |
download | scummvm-rg350-985f8a3720873b6bfd2bd2cb5bcda78b24629e84.tar.gz scummvm-rg350-985f8a3720873b6bfd2bd2cb5bcda78b24629e84.tar.bz2 scummvm-rg350-985f8a3720873b6bfd2bd2cb5bcda78b24629e84.zip |
TITANIC: Fixes for coordinates init in CStarPoints1
-rw-r--r-- | engines/titanic/star_control/star_points1.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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; |