summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-05 13:32:03 +0000
committertron <tron@openttd.org>2005-01-05 13:32:03 +0000
commite4cf2ba1b304a0b424a50a6143243172b9c5264d (patch)
treeb9a5829b3d37c53a2de48d1ef28960f41804f4dc /macros.h
parent0a37e6202b4b2633ce0bf13ce3f71fdcfe8a8ce0 (diff)
downloadopenttd-e4cf2ba1b304a0b424a50a6143243172b9c5264d.tar.xz
(svn r1386) Move TileIndexDiff to map.h
Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir()
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/macros.h b/macros.h
index 61351d9e1..24be9a911 100644
--- a/macros.h
+++ b/macros.h
@@ -148,13 +148,7 @@ static inline int FindFirstBit2x64(int value)
}
-#if TILE_X_BITS + TILE_Y_BITS <= 16
- typedef uint16 TileIndex;
- typedef int16 TileIndexDiff;
-#else
- typedef uint32 TileIndex;
- typedef int32 TileIndexDiff;
-#endif
+typedef uint16 TileIndex;
/* [min,max), strictly less than */
#define IS_BYTE_INSIDE(a,min,max) ((byte)((a)-(min)) < (byte)((max)-(min)))