author | tron |
Sun, 06 Mar 2005 12:46:29 +0000 | |
changeset 1433 | 129a0339f26f |
parent 1432 | 9086ccebb3f1 |
child 1434 | f219d7bf2eb6 |
--- 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))