(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
This commit is contained in:
@@ -346,7 +346,7 @@ protected:
|
||||
if (IsRailTT() && m_is_station) {
|
||||
/* entered railway station
|
||||
* get platform length */
|
||||
uint length = GetStationByTile(m_new_tile)->GetPlatformLength(m_new_tile, TrackdirToExitdir(m_old_td));
|
||||
uint length = Station::GetByTile(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 */
|
||||
|
@@ -543,7 +543,7 @@ no_entry_cost: // jump here at the beginning if the node has no parent (it is th
|
||||
|
||||
/* Station platform-length penalty. */
|
||||
if ((end_segment_reason & ESRB_STATION) != ESRB_NONE) {
|
||||
Station *st = GetStationByTile(n.GetLastTile());
|
||||
Station *st = Station::GetByTile(n.GetLastTile());
|
||||
assert(st != NULL);
|
||||
uint platform_length = st->GetPlatformLength(n.GetLastTile(), ReverseDiagDir(TrackdirToExitdir(n.GetLastTrackdir())));
|
||||
/* Reduce the extra cost caused by passing-station penalty (each station receives it in the segment cost). */
|
||||
|
Reference in New Issue
Block a user