From 92fc45032da925a3865b1b3b362ba04ab870762b Mon Sep 17 00:00:00 2001 From: cirdan Date: Mon, 13 Jan 2014 20:04:09 +0100 Subject: [PATCH] Use m_exitdir when skipping a station in the track follower Use m_exitdir, which is already known, when skipping a train station in the track follower, instead of recomputing TrackdirToExitdir(m_old.td). --- src/pathfinder/follow_track.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pathfinder/follow_track.hpp b/src/pathfinder/follow_track.hpp index 52c4f3ef1..53166dac0 100644 --- a/src/pathfinder/follow_track.hpp +++ b/src/pathfinder/follow_track.hpp @@ -373,7 +373,7 @@ struct CFollowTrackRailBase : CFollowTrackBase if (m_flag == TF_STATION) { /* entered railway station * get platform length */ - uint length = BaseStation::GetByTile(m_new.tile)->GetPlatformLength(m_new.tile, TrackdirToExitdir(m_old.td)); + uint length = BaseStation::GetByTile(m_new.tile)->GetPlatformLength(m_new.tile, m_exitdir); /* how big step we must do to get to the last platform tile; */ m_tiles_skipped = length - 1; /* move to the platform end */ -- 2.11.4.GIT