summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-08-03 20:50:12 +0000
committersmatz <smatz@openttd.org>2008-08-03 20:50:12 +0000
commitbea84ea8d908c0fc4bbe3cce6c6791c1c03a6dd3 (patch)
treead1ee86ef2806b675c378e0dfae269ad009c6ea0 /src
parentf02671e0f4c4ed0c39e2aee298c62f4308b37fd8 (diff)
downloadopenttd-bea84ea8d908c0fc4bbe3cce6c6791c1c03a6dd3.tar.xz
(svn r13985) -Fix (r13944): gcc 2.95 compilation
Diffstat (limited to 'src')
-rw-r--r--src/yapf/yapf_destrail.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yapf/yapf_destrail.hpp b/src/yapf/yapf_destrail.hpp
index 9790758e4..a048ebfd4 100644
--- a/src/yapf/yapf_destrail.hpp
+++ b/src/yapf/yapf_destrail.hpp
@@ -70,6 +70,7 @@ public:
typedef typename Types::Tpf Tpf; ///< the pathfinder class (derived from THIS class)
typedef typename Types::NodeList::Titem Node; ///< this will be our node type
typedef typename Node::Key Key; ///< key to hash tables
+ typedef typename Types::TrackFollower TrackFollower; ///< TrackFollower. Need to typedef for gcc 2.95
/// to access inherited path finder
Tpf& Yapf() {return *static_cast<Tpf*>(this);}
@@ -84,8 +85,8 @@ public:
FORCEINLINE bool PfDetectDestination(TileIndex tile, Trackdir td)
{
return
- IsSafeWaitingPosition(Yapf().GetVehicle(), tile, td, true, Types::TrackFollower::Allow90degTurns()) &&
- IsWaitingPositionFree(Yapf().GetVehicle(), tile, td, Types::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