From 72e74c29d45bc81c4d7a5ba84e42b26bf11a4ffb Mon Sep 17 00:00:00 2001 From: celestar Date: Tue, 13 Feb 2007 16:36:38 +0000 Subject: (svn r8709) -Fix/Codechange: Rename the function GetStationPlatforms into GetPlatformLength because that is what it really does. Overload it because there is already a GetPlatformLength (one gives the length of the whole platform, the other gives the remaining length in a given direction). Turned both functions into methods of Station. While messing around with it, fix a problem where loading times for overhanging trains are miscomputed. --- src/yapf/follow_track.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/yapf') diff --git a/src/yapf/follow_track.hpp b/src/yapf/follow_track.hpp index 4c81caeb4..04ffecf5d 100644 --- a/src/yapf/follow_track.hpp +++ b/src/yapf/follow_track.hpp @@ -197,7 +197,7 @@ protected: if (IsRailTT() && m_is_station) { // entered railway station // get platform length - uint length = GetPlatformLength(m_new_tile, TrackdirToExitdir(m_old_td)); + uint length = GetStationByTile(m_new_tile)->GetPlatformLength(m_new_tile, TrackdirToExitdir(m_old_td)); // how big step we must do to get to the last platform tile; m_tiles_skipped = length - 1; // move to the platform end -- cgit v1.2.3-70-g09d2