From cec026122300b502ae350c0481af2d6b9e4e511e Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 6 Mar 2005 12:46:29 +0000 Subject: [PATCH] (svn r1937) TILE_FROM_XY() returns a TileIndex, not an int --- map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map.h b/map.h index 5e5b395e15..8adc0f075a 100644 --- a/map.h +++ b/map.h @@ -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))