summaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-10 22:14:35 +0000
committertron <tron@openttd.org>2005-01-10 22:14:35 +0000
commit05a3a83b6ce2d8d993900b1741ec26c61fa7a5e8 (patch)
tree6883287048b8258867d42f07df628238162411dc /map.h
parent46d0e2f892bdb7a17deb7b5e2847db458967bf14 (diff)
downloadopenttd-05a3a83b6ce2d8d993900b1741ec26c61fa7a5e8.tar.xz
(svn r1475) Fix some more signed/unsigned comparison warnings
Diffstat (limited to 'map.h')
-rw-r--r--map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/map.h b/map.h
index ba69cfb8a..489cb025c 100644
--- a/map.h
+++ b/map.h
@@ -4,7 +4,7 @@
#define TILE_FROM_XY(x,y) (int)((((y) >> 4) << MapLogX()) + ((x) >> 4))
#define TILE_XY(x,y) (int)(((y) << MapLogX()) + (x))
-#define TILE_MASK(x) (int)((x) & ((1 << (MapLogX() + MapLogY())) - 1))
+#define TILE_MASK(x) ((x) & ((1 << (MapLogX() + MapLogY())) - 1))
extern byte _map_type_and_height[];
extern byte _map5[];