TITANIC: Fixes for coordinates init in CStarPoints1

This commit is contained in:
Paul Gilbert 2017-02-24 23:29:54 -05:00
parent 32965e44e3
commit 985f8a3720

View File

@ -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;