map.h
changeset 979 f12f96116cdd
parent 955 25bc5b97e3e2
child 1035 0a170deb6e33
--- a/map.h	Mon Jan 10 21:56:02 2005 +0000
+++ b/map.h	Mon Jan 10 22:14:35 2005 +0000
@@ -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[];