summaryrefslogtreecommitdiffstats
path: root/src/object/auto/autoportico.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-11 17:28:27 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-11 17:28:27 +0200
commita8665d204255b4b0ad9ae6982f77ecd5e053c1b6 (patch)
tree5f7e58785f5175e7f067ffaf8f96d16272c92d1e /src/object/auto/autoportico.cpp
parent8ffdf2583e4ea77731490dcaad51dbc08d7f26fa (diff)
downloadcolobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.gz
colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.bz2
colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.zip
Changed #defined constants to consts; typedef struct -> struct
Diffstat (limited to 'src/object/auto/autoportico.cpp')
-rw-r--r--src/object/auto/autoportico.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/object/auto/autoportico.cpp b/src/object/auto/autoportico.cpp
index 97f11c5..5c4a09c 100644
--- a/src/object/auto/autoportico.cpp
+++ b/src/object/auto/autoportico.cpp
@@ -44,20 +44,20 @@
-#define PARAM_DEPOSE 2 // run=2 -> deposits the spaceship
-
-#define PORTICO_POSa 75.0f
-#define PORTICO_POSb 65.0f
-#define PORTICO_ANGLE1a ( 25.0f*PI/180.0f)
-#define PORTICO_ANGLE1b ( 70.0f*PI/180.0f)
-#define PORTICO_ANGLE2a (-37.5f*PI/180.0f)
-#define PORTICO_ANGLE2b (-62.5f*PI/180.0f)
-#define PORTICO_ANGLE3a (-77.5f*PI/180.0f)
-#define PORTICO_ANGLE3b (-30.0f*PI/180.0f)
-
-#define PORTICO_TIME_MOVE 16.0f
-#define PORTICO_TIME_DOWN 4.0f
-#define PORTICO_TIME_OPEN 12.0f
+const int PARAM_DEPOSE = 2; // run=2 -> deposits the spaceship
+
+const float PORTICO_POSa = 75.0f;
+const float PORTICO_POSb = 65.0f;
+const float PORTICO_ANGLE1a = ( 25.0f*PI/180.0f);
+const float PORTICO_ANGLE1b = ( 70.0f*PI/180.0f);
+const float PORTICO_ANGLE2a = (-37.5f*PI/180.0f);
+const float PORTICO_ANGLE2b = (-62.5f*PI/180.0f);
+const float PORTICO_ANGLE3a = (-77.5f*PI/180.0f);
+const float PORTICO_ANGLE3b = (-30.0f*PI/180.0f);
+
+const float PORTICO_TIME_MOVE = 16.0f;
+const float PORTICO_TIME_DOWN = 4.0f;
+const float PORTICO_TIME_OPEN = 12.0f;