summaryrefslogtreecommitdiff
path: root/yapf/follow_track.hpp
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-09-05 23:21:41 +0000
committerDarkvater <darkvater@openttd.org>2006-09-05 23:21:41 +0000
commit80814dbb1d01f651ba7c60547dc1b52c1c209378 (patch)
treef2f14fca9ac095b0bf6b46615035b8c207e3ce66 /yapf/follow_track.hpp
parent516d412a77de7fb3d2278515d59a0c46bb9b461b (diff)
downloadopenttd-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 'yapf/follow_track.hpp')
-rw-r--r--yapf/follow_track.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/yapf/follow_track.hpp b/yapf/follow_track.hpp
index 218de53b4..a197ef8bb 100644
--- a/yapf/follow_track.hpp
+++ b/yapf/follow_track.hpp
@@ -78,7 +78,7 @@ protected:
m_tiles_skipped = 0;
// normal or station tile
- TileIndexDiff diff = TileOffsByDir(m_exitdir);
+ TileIndexDiff diff = TileOffsByDiagDir(m_exitdir);
m_new_tile = TILE_ADD(m_old_tile, diff);
// special handling for stations
@@ -194,7 +194,7 @@ protected:
// how big step we must do to get to the last platform tile;
m_tiles_skipped = length - 1;
// move to the platform end
- TileIndexDiff diff = TileOffsByDir(m_exitdir);
+ TileIndexDiff diff = TileOffsByDiagDir(m_exitdir);
diff *= m_tiles_skipped;
m_new_tile = TILE_ADD(m_new_tile, diff);
return true;