diff options
author | rubidium <rubidium@openttd.org> | 2010-05-13 11:19:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-13 11:19:30 +0000 |
commit | 548dd91ef0ed6d470dc3553b994022ead99ece95 (patch) | |
tree | 2f948640d743b22b564a36d2b01258c3e6650097 /src/tile_type.h | |
parent | 28d25cadfc87398c3b352a07de377b836e4aa0d1 (diff) | |
download | openttd-548dd91ef0ed6d470dc3553b994022ead99ece95.tar.xz |
(svn r19816) -Codechange: use static const uint for the unnamed 'tile consts' enum as well
Diffstat (limited to 'src/tile_type.h')
-rw-r--r-- | src/tile_type.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/tile_type.h b/src/tile_type.h index 82e4146e0..26b0fa1f0 100644 --- a/src/tile_type.h +++ b/src/tile_type.h @@ -12,18 +12,16 @@ #ifndef TILE_TYPE_H #define TILE_TYPE_H +static const uint TILE_SIZE = 16; ///< Tiles are 16x16 "units" in size +static const uint TILE_UNIT_MASK = TILE_SIZE - 1; ///< for masking in/out the inner-tile units. +static const uint TILE_PIXELS = 32; ///< a tile is 32x32 pixels +static const uint TILE_HEIGHT = 8; ///< The standard height-difference between tiles on two levels is 8 (z-diff 8) -enum { - TILE_SIZE = 16, ///< Tiles are 16x16 "units" in size - TILE_UNIT_MASK = TILE_SIZE - 1, ///< for masking in/out the inner-tile units. - TILE_PIXELS = 32, ///< a tile is 32x32 pixels - TILE_HEIGHT = 8, ///< The standard height-difference between tiles on two levels is 8 (z-diff 8) +static const uint MAX_TILE_HEIGHT = 15; ///< Maximum allowed tile height - MAX_TILE_HEIGHT = 15, ///< Maximum allowed tile height - MIN_SNOWLINE_HEIGHT = 2, ///< Minimum snowline height - DEF_SNOWLINE_HEIGHT = 7, ///< Default snowline height - MAX_SNOWLINE_HEIGHT = (MAX_TILE_HEIGHT - 2), ///< Maximum allowed snowline height -}; +static const uint MIN_SNOWLINE_HEIGHT = 2; ///< Minimum snowline height +static const uint DEF_SNOWLINE_HEIGHT = 7; ///< Default snowline height +static const uint MAX_SNOWLINE_HEIGHT = (MAX_TILE_HEIGHT - 2); ///< Maximum allowed snowline height /** |