diff options
author | rubidium <rubidium@openttd.org> | 2009-05-22 18:17:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-22 18:17:20 +0000 |
commit | 441011b782294e93b47876f24de96a63da7dd678 (patch) | |
tree | 7592579bbde1a91f353a6d685a8a64128f6a6955 /src/yapf/yapf_rail.cpp | |
parent | cf0cfb908f02ca54efd5956f11909514de062015 (diff) | |
download | openttd-441011b782294e93b47876f24de96a63da7dd678.tar.xz |
(svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle.
Diffstat (limited to 'src/yapf/yapf_rail.cpp')
-rw-r--r-- | src/yapf/yapf_rail.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yapf/yapf_rail.cpp b/src/yapf/yapf_rail.cpp index 09f672605..8d530bf52 100644 --- a/src/yapf/yapf_rail.cpp +++ b/src/yapf/yapf_rail.cpp @@ -540,8 +540,8 @@ bool YapfCheckReverseTrain(const Vehicle *v) const Vehicle *last_veh = GetLastVehicleInChain(v); /* get trackdirs of both ends */ - Trackdir td = GetVehicleTrackdir(v); - Trackdir td_rev = ReverseTrackdir(GetVehicleTrackdir(last_veh)); + Trackdir td = v->GetVehicleTrackdir(); + Trackdir td_rev = ReverseTrackdir(last_veh->GetVehicleTrackdir()); /* tiles where front and back are */ TileIndex tile = v->tile; @@ -603,7 +603,7 @@ bool YapfFindNearestRailDepotTwoWay(const Vehicle *v, int max_distance, int reve PBSTileInfo origin = FollowTrainReservation(v); TileIndex last_tile = last_veh->tile; - Trackdir td_rev = ReverseTrackdir(GetVehicleTrackdir(last_veh)); + Trackdir td_rev = ReverseTrackdir(last_veh->GetVehicleTrackdir()); typedef bool (*PfnFindNearestDepotTwoWay)(const Vehicle*, TileIndex, Trackdir, TileIndex, Trackdir, int, int, TileIndex*, bool*); PfnFindNearestDepotTwoWay pfnFindNearestDepotTwoWay = &CYapfAnyDepotRail1::stFindNearestDepotTwoWay; |