diff -r a1e7417bf1b7 -r a542a6d595fc src/yapf/yapf_destrail.hpp --- a/src/yapf/yapf_destrail.hpp Tue Sep 30 21:18:28 2008 +0000 +++ b/src/yapf/yapf_destrail.hpp Wed Oct 01 15:48:44 2008 +0000 @@ -85,8 +85,8 @@ FORCEINLINE bool PfDetectDestination(TileIndex tile, Trackdir td) { return - IsSafeWaitingPosition(Yapf().GetVehicle(), tile, td, true, TrackFollower::Allow90degTurns()) && - IsWaitingPositionFree(Yapf().GetVehicle(), tile, td, TrackFollower::Allow90degTurns()); + IsSafeWaitingPosition(Yapf().GetVehicle(), tile, td, true, !TrackFollower::Allow90degTurns()) && + IsWaitingPositionFree(Yapf().GetVehicle(), tile, td, !TrackFollower::Allow90degTurns()); } /** Called by YAPF to calculate cost estimate. Calculates distance to the destination