Change GetPlatformLength use in GetDistanceToStopLocation
commitb4d7563703bcd6813964e8cbcb5b058325a995d8
authorcirdan <cirdansw@gmail.com>
Thu, 28 Dec 2017 20:37:19 +0000 (28 21:37 +0100)
committercirdan <cirdansw@gmail.com>
Thu, 28 Dec 2017 20:37:19 +0000 (28 21:37 +0100)
tree84407b55b3d2777652221d765888386c470f7a58
parentf6b5082d86808dfa08525233b104e8a254d58104
Change GetPlatformLength use in GetDistanceToStopLocation

When computing the total platform length in
GetDistanceToStopLocation, we already know the number of
tiles ahead, so we only need to count those behind, using
the two-parameter variant of Station::GetPlatformLength.
src/train_cmd.cpp