forked from mirror/OpenTTD
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
This commit is contained in:
8
macros.h
8
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);
|
||||
|
Reference in New Issue
Block a user