summaryrefslogtreecommitdiffstats
path: root/src/physics
diff options
context:
space:
mode:
Diffstat (limited to 'src/physics')
-rw-r--r--src/physics/physics.cpp6
-rw-r--r--src/physics/physics.h5
2 files changed, 5 insertions, 6 deletions
diff --git a/src/physics/physics.cpp b/src/physics/physics.cpp
index eb26d6e..b105a44 100644
--- a/src/physics/physics.cpp
+++ b/src/physics/physics.cpp
@@ -49,9 +49,9 @@
-#define LANDING_SPEED 3.0f
-#define LANDING_ACCEL 5.0f
-#define LANDING_ACCELh 1.5f
+const float LANDING_SPEED = 3.0f;
+const float LANDING_ACCEL = 5.0f;
+const float LANDING_ACCELh = 1.5f;
diff --git a/src/physics/physics.h b/src/physics/physics.h
index bc1c8b6..5b3fa29 100644
--- a/src/physics/physics.h
+++ b/src/physics/physics.h
@@ -59,7 +59,7 @@ enum PhysicsMode
};
-typedef struct
+struct Motion
{
D3DVECTOR advanceAccel; // acceleration starting (+)
D3DVECTOR recedeAccel; // acceleration starting (+)
@@ -78,8 +78,7 @@ typedef struct
D3DVECTOR realSpeed; // real speed(+/-)
D3DVECTOR finalInclin; // final inclination
-}
-Motion;
+};