summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-09 17:55:11 +0000
committertron <tron@openttd.org>2005-01-09 17:55:11 +0000
commit55e6b4f928656c23b1f8bb5cbb3763152213a0b0 (patch)
tree0fc0024c473c2a61c0b6b9be4b9fcaae7e056ddd /macros.h
parent32f480a4aebb85abc03dad56149c2d05bcf8a65b (diff)
downloadopenttd-55e6b4f928656c23b1f8bb5cbb3763152213a0b0.tar.xz
(svn r1447) Move TILE_ADD(), TILE_ADDXY() and SafeTileAdd() to map.[ch] and make the latter map size agnostic
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/macros.h b/macros.h
index b9fa59104..f4c8cfc42 100644
--- a/macros.h
+++ b/macros.h
@@ -81,16 +81,6 @@ enum {
#define TILE_ASSERT(x) assert( TILE_MASK(x) == (x) );
-uint SafeTileAdd(uint x, int add, const char *exp, const char *file, int line);
-
-#if !defined(_DEBUG)
-# define TILE_ADD(x,y) ((x)+(y))
-#else
-# define TILE_ADD(x,y) (SafeTileAdd((x),(y), #x ", " #y, __FILE__, __LINE__))
-#endif
-
-#define TILE_ADDXY(tile, x, y) TILE_ADD(tile, TILE_XY(x,y))
-
//#define REMADP_COORDS(x,y,z) { int t = x; x = (y-t)*2; y+=t-z; }
#define PACK_POINT(x,y) ((x) | ((y) << 16))