diff options
author | tron <tron@openttd.org> | 2005-03-06 12:46:29 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-03-06 12:46:29 +0000 |
commit | 9973e97b84e62a8a5c4eb20ba5cac9f1aa677128 (patch) | |
tree | f1171729e47611b073d454ee87f845e910922828 | |
parent | e748280622dcf1504234e473229bde4af741af28 (diff) | |
download | openttd-9973e97b84e62a8a5c4eb20ba5cac9f1aa677128.tar.xz |
(svn r1937) TILE_FROM_XY() returns a TileIndex, not an int
-rw-r--r-- | map.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |