summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-15 22:18:54 +0000
committertron <tron@openttd.org>2004-12-15 22:18:54 +0000
commit765ecfed848bd7fc8e3e10e99f7ecc3f1ae338a4 (patch)
treeabc024a53e9698bc4ed26a6830310805e30c693f /macros.h
parent736718ef53c7c5a3b8536136209668a895901187 (diff)
downloadopenttd-765ecfed848bd7fc8e3e10e99f7ecc3f1ae338a4.tar.xz
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/macros.h b/macros.h
index 7517d6fed..584006312 100644
--- a/macros.h
+++ b/macros.h
@@ -66,8 +66,6 @@ static inline int64 BIGMULS(int32 a, int32 b) {
//#define IS_INSIDE_1D(x, base, size) ((x) >= (base) && (x) < (base) + (size))
#define IS_INSIDE_1D(x, base, size) ( (uint)((x) - (base)) < ((uint)(size)) )
-#define TILE_X_BITS 8
-#define TILE_Y_BITS 8
#define LANDSCAPE_SIZE_FACTOR 1
#define TILE_FROM_XY(x,y) (int)((((y) >> 4) << TILE_X_BITS) + ((x) >> 4))
@@ -82,12 +80,6 @@ enum {
};
#define CORRECT_Z(tileh) (CORRECT_Z_BITS & (1 << tileh))
-#define TILES_X (1 << TILE_X_BITS)
-#define TILES_Y (1 << TILE_Y_BITS)
-
-#define TILE_X_MAX (TILES_X-1)
-#define TILE_Y_MAX (TILES_Y-1)
-
#define TILE_ASSERT(x) assert( TILE_MASK(x) == (x) );
extern uint SafeTileAdd(uint x, int add, const char *exp, const char *file, int line);