summaryrefslogtreecommitdiff
path: root/src/tile.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-07-23 19:30:36 +0000
committertruelight <truelight@openttd.org>2007-07-23 19:30:36 +0000
commitb0d618c66b637b0b700159ffaef700d1c6a8c9fe (patch)
treebfad3a88dc72503d87b57da5c45379536699ab72 /src/tile.h
parent33d78635efdc6458e72f96f33d169ec2e7e7cde6 (diff)
downloadopenttd-b0d618c66b637b0b700159ffaef700d1c6a8c9fe.tar.xz
(svn r10665) -Codechange: replace magic 15 with MAX_TILE_HEIGHT (bilbo)
-Codechange: replace magic 13 with MAX_SNOWLINE_HEIGHT (bilbo) -Codechange: assure _map_height_bits is always of correct size (Rubidium)
Diffstat (limited to 'src/tile.h')
-rw-r--r--src/tile.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tile.h b/src/tile.h
index d7f747b45..4d6e48ce5 100644
--- a/src/tile.h
+++ b/src/tile.h
@@ -10,6 +10,12 @@
#include "map.h"
#include "slope.h"
+/** Maximum allowed tile height */
+#define MAX_TILE_HEIGHT 15
+
+/** Maximum allowed snowline height */
+#define MAX_SNOWLINE_HEIGHT (MAX_TILE_HEIGHT - 2)
+
enum TileType {
MP_CLEAR,
MP_RAILWAY,