# HG changeset patch # User tron # Date 1110113189 0 # Node ID 129a0339f26f5de124d5daf51c47ff79999e686e # Parent 9086ccebb3f185584ee6a3dad5b3a44505bb8354 (svn r1937) TILE_FROM_XY() returns a TileIndex, not an int diff -r 9086ccebb3f1 -r 129a0339f26f map.h --- 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))