aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/space.h
diff options
context:
space:
mode:
authorMatthew Stewart2018-07-19 04:39:57 -0400
committerEugene Sandulenko2018-08-09 08:37:30 +0200
commit565bf0e96750588e8a7f6816e79683e97896f8de (patch)
tree6d8e0c8ba093937227f073999c587945be2646ab /engines/startrek/space.h
parent2b09f698ed47942d84e6c7f503901941116db328 (diff)
downloadscummvm-rg350-565bf0e96750588e8a7f6816e79683e97896f8de.tar.gz
scummvm-rg350-565bf0e96750588e8a7f6816e79683e97896f8de.tar.bz2
scummvm-rg350-565bf0e96750588e8a7f6816e79683e97896f8de.zip
STARTREK: atan2 function
Diffstat (limited to 'engines/startrek/space.h')
-rw-r--r--engines/startrek/space.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/startrek/space.h b/engines/startrek/space.h
index a9c6bdea93..f4b53d17ab 100644
--- a/engines/startrek/space.h
+++ b/engines/startrek/space.h
@@ -73,7 +73,8 @@ struct TPoint {
};
typedef TPoint<int32> Point3;
-typedef TPoint<Fixed14> Point3W;
+typedef TPoint<int16> Point3_Short;
+typedef TPoint<Fixed14> Point_Fixed14;
template<typename T>
@@ -106,7 +107,7 @@ public:
}
};
-typedef TMatrix<Point3W> Matrix;
+typedef TMatrix<Point_Fixed14> Matrix;
struct Star {
bool active;
@@ -117,10 +118,12 @@ struct Star {
// TODO: what does this stand for? Maybe rename it.
struct R3 {
Point3 pos; // 0x0
+ Matrix matrix; // 0xc
int16 field1e; // 0x1e
int16 field20; // 0x20
int16 field22; // 0x22
int16 field24; // 0x24
+ Point3_Short speed; // 0x26
SharedPtr<FileStream> shpFile; // 0x68
};