diff options
author | tron <tron@openttd.org> | 2005-01-07 17:02:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-07 17:02:43 +0000 |
commit | 7ca6b2b8b0d6f66966fa2ff01e3e9961314dfcc4 (patch) | |
tree | e4137b60a824b45ce09f668d58520e36dba10256 /misc_gui.c | |
parent | f5c33e50733c46cee14e84ade6da0c171d96064b (diff) | |
download | openttd-7ca6b2b8b0d6f66966fa2ff01e3e9961314dfcc4.tar.xz |
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc_gui.c b/misc_gui.c index 71727ebb7..919a6675c 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -58,8 +58,8 @@ static void LandInfoWndProc(Window *w, WindowEvent *e) DrawStringCentered(140, 38, str, 0); snprintf(_userstring, USERSTRING_LEN, "%.4X", lid->tile); - SetDParam(0, GET_TILE_X(lid->tile)); - SetDParam(1, GET_TILE_Y(lid->tile)); + SetDParam(0, TileX(lid->tile)); + SetDParam(1, TileY(lid->tile)); SetDParam(2, STR_SPEC_USERSTRING); DrawStringCentered(140, 49, STR_LANDINFO_COORDS, 0); @@ -143,7 +143,7 @@ static void Place_LandInfo(uint tile) GetTileDesc(tile, &lid.td); #if defined(_DEBUG) - DEBUG(misc, 0) ("TILE: %#x (%i,%i)", tile, GET_TILE_X(tile), GET_TILE_Y(tile)); + DEBUG(misc, 0) ("TILE: %#x (%i,%i)", tile, TileX(tile), TileY(tile)); DEBUG(misc, 0) ("TILE: %d ", tile); DEBUG(misc, 0) ("_map_type_and_height=%#x", _map_type_and_height[tile]); DEBUG(misc, 0) ("_map2=%#x", _map2[tile]); |