diff options
author | tron <tron@openttd.org> | 2004-12-15 22:18:54 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-12-15 22:18:54 +0000 |
commit | 765ecfed848bd7fc8e3e10e99f7ecc3f1ae338a4 (patch) | |
tree | abc024a53e9698bc4ed26a6830310805e30c693f /macros.h | |
parent | 736718ef53c7c5a3b8536136209668a895901187 (diff) | |
download | openttd-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.h | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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); |