map.h
changeset 1433 129a0339f26f
parent 1394 449e84bdc04e
child 1677 c18884ca76d5
--- a/map.h	Sun Mar 06 12:41:18 2005 +0000
+++ b/map.h	Sun Mar 06 12:46:29 2005 +0000
@@ -3,7 +3,7 @@
 
 #include "stdafx.h"
 
-#define TILE_FROM_XY(x,y) (int)((((y) >> 4) << MapLogX()) + ((x) >> 4))
+#define TILE_FROM_XY(x,y) (TileIndex)((((y) >> 4) << MapLogX()) + ((x) >> 4))
 #define TILE_XY(x,y) (((y) << MapLogX()) + (x))
 
 #define TILE_MASK(x) ((x) & ((1 << (MapLogX() + MapLogY())) - 1))