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 | 414ac3286b10b83d8f832c58f48f373f5130cb89 (patch) | |
tree | e4137b60a824b45ce09f668d58520e36dba10256 /pathfind.c | |
parent | fe798488e6c03311cee8328398c7ce5e235f70c8 (diff) | |
download | openttd-414ac3286b10b83d8f832c58f48f373f5130cb89.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 'pathfind.c')
-rw-r--r-- | pathfind.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pathfind.c b/pathfind.c index a6b23a540..befb45f4c 100644 --- a/pathfind.c +++ b/pathfind.c @@ -161,7 +161,7 @@ static void TPFMode2(TrackPathFinder *tpf, uint tile, int direction) if (bits == 0) return; - assert(GET_TILE_X(tile) != MapMaxX() && GET_TILE_Y(tile) != MapMaxY()); + assert(TileX(tile) != MapMaxX() && TileY(tile) != MapMaxY()); if ( (bits & (bits - 1)) == 0 ) { /* only one direction */ @@ -218,8 +218,8 @@ FindLengthOfTunnelResult FindLengthOfTunnel(uint tile, int direction) flotr.length = 0; - x = GET_TILE_X(tile) * 16; - y = GET_TILE_Y(tile) * 16; + x = TileX(tile) * 16; + y = TileY(tile) * 16; z = GetSlopeZ(x+8, y+8); |