diff options
author | Darkvater <darkvater@openttd.org> | 2006-09-05 23:21:41 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-09-05 23:21:41 +0000 |
commit | 80814dbb1d01f651ba7c60547dc1b52c1c209378 (patch) | |
tree | f2f14fca9ac095b0bf6b46615035b8c207e3ce66 /tunnel_map.c | |
parent | 516d412a77de7fb3d2278515d59a0c46bb9b461b (diff) | |
download | openttd-80814dbb1d01f651ba7c60547dc1b52c1c209378.tar.xz |
(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts
DiagDirections, and add TileOffsByDir that handles Directions.
-Codechange: Make the treeloop use TileOffsByDir().
Diffstat (limited to 'tunnel_map.c')
-rw-r--r-- | tunnel_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tunnel_map.c b/tunnel_map.c index 435d62f20..a4945591d 100644 --- a/tunnel_map.c +++ b/tunnel_map.c @@ -8,7 +8,7 @@ TileIndex GetOtherTunnelEnd(TileIndex tile) { DiagDirection dir = GetTunnelDirection(tile); - TileIndexDiff delta = TileOffsByDir(dir); + TileIndexDiff delta = TileOffsByDiagDir(dir); uint z = GetTileZ(tile); dir = ReverseDiagDir(dir); @@ -26,7 +26,7 @@ TileIndex GetOtherTunnelEnd(TileIndex tile) static bool IsTunnelInWayDir(TileIndex tile, uint z, DiagDirection dir) { - TileIndexDiff delta = TileOffsByDir(dir); + TileIndexDiff delta = TileOffsByDiagDir(dir); uint height; do { |