diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-11 17:28:27 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-06-11 17:28:27 +0200 |
commit | a8665d204255b4b0ad9ae6982f77ecd5e053c1b6 (patch) | |
tree | 5f7e58785f5175e7f067ffaf8f96d16272c92d1e /src/graphics/common/water.h | |
parent | 8ffdf2583e4ea77731490dcaad51dbc08d7f26fa (diff) | |
download | colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.gz colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.tar.bz2 colobot-a8665d204255b4b0ad9ae6982f77ecd5e053c1b6.zip |
Changed #defined constants to consts; typedef struct -> struct
Diffstat (limited to 'src/graphics/common/water.h')
-rw-r--r-- | src/graphics/common/water.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/graphics/common/water.h b/src/graphics/common/water.h index c0593a0..7a7ffef 100644 --- a/src/graphics/common/water.h +++ b/src/graphics/common/water.h @@ -29,20 +29,19 @@ class CSound; -#define MAXWATERLINE 500
+const int MAXWATERLINE = 500;
-typedef struct
+struct WaterLine
{
short x, y; // beginning
short len; // length by x
float px1, px2, pz;
-}
-WaterLine;
+};
-#define MAXWATVAPOR 10
+const int MAXWATVAPOR = 10;
-typedef struct
+struct WaterVapor
{
bool bUsed;
ParticuleType type;
@@ -50,8 +49,7 @@ typedef struct float delay;
float time;
float last;
-}
-WaterVapor;
+};
enum WaterType
|