diff options
author | smatz <smatz@openttd.org> | 2009-06-24 17:39:54 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-24 17:39:54 +0000 |
commit | 8343340acb5bdb40555e04f40aac567d6e583bb8 (patch) | |
tree | 29b17ad863977abd3d3417dd8bbf84e01cfc261d /src/npf.cpp | |
parent | b18bf87c9081c3d202897e9c3ed282729db415a4 (diff) | |
download | openttd-8343340acb5bdb40555e04f40aac567d6e583bb8.tar.xz |
(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
Diffstat (limited to 'src/npf.cpp')
-rw-r--r-- | src/npf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/npf.cpp b/src/npf.cpp index e4a9473cf..cc7b4f6a2 100644 --- a/src/npf.cpp +++ b/src/npf.cpp @@ -12,6 +12,7 @@ #include "tunnelbridge_map.h" #include "functions.h" #include "vehicle_base.h" +#include "station_base.h" #include "tunnelbridge.h" #include "pbs.h" #include "settings_type.h" @@ -514,7 +515,7 @@ static void NPFSaveTargetData(AyStar *as, OpenListNode *current) /* If the target is a station skip to platform end. */ if (IsRailwayStationTile(target->node.tile)) { DiagDirection dir = TrackdirToExitdir(target->node.direction); - uint len = GetStationByTile(target->node.tile)->GetPlatformLength(target->node.tile, dir); + uint len = Station::GetByTile(target->node.tile)->GetPlatformLength(target->node.tile, dir); TileIndex end_tile = TILE_ADD(target->node.tile, (len - 1) * TileOffsByDiagDir(dir)); /* Update only end tile, trackdir of a station stays the same. */ |