From 79a551a83ceda50b1b95d2a5519dbcbc6f700d2b Mon Sep 17 00:00:00 2001 From: J0anJosep Date: Sun, 29 Apr 2018 13:50:52 +0200 Subject: Codechange: Use TileAddBy(Diag)Dir when possible. --- src/pathfinder/follow_track.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pathfinder/follow_track.hpp') diff --git a/src/pathfinder/follow_track.hpp b/src/pathfinder/follow_track.hpp index 9f19b029c..d9a70b7fc 100644 --- a/src/pathfinder/follow_track.hpp +++ b/src/pathfinder/follow_track.hpp @@ -219,8 +219,7 @@ protected: } /* normal or station tile, do one step */ - TileIndexDiff diff = TileOffsByDiagDir(m_exitdir); - m_new_tile = TILE_ADD(m_old_tile, diff); + m_new_tile = TileAddByDiagDir(m_old_tile, m_exitdir); /* special handling for stations */ if (IsRailTT() && HasStationTileRail(m_new_tile)) { -- cgit v1.2.3-70-g09d2