diff options
author | KUDr <KUDr@openttd.org> | 2006-05-30 10:53:27 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2006-05-30 10:53:27 +0000 |
commit | af1b942906b389a4f6bfa5dabcac26ea56c5e2f1 (patch) | |
tree | 79602ee8d10bb3df5130a5bcc264510562f3bf6e /yapf/yapf_base.hpp | |
parent | af9f81b6a8c1b23031341237f5a5cfdd3930f81e (diff) | |
download | openttd-af1b942906b389a4f6bfa5dabcac26ea56c5e2f1.tar.xz |
(svn r5033) -CodeChange: [YAPF] RoadFindPathToStop() can now use YAPF for multistop handling.
Diffstat (limited to 'yapf/yapf_base.hpp')
-rw-r--r-- | yapf/yapf_base.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yapf/yapf_base.hpp b/yapf/yapf_base.hpp index 04eefb885..55d2d81ec 100644 --- a/yapf/yapf_base.hpp +++ b/yapf/yapf_base.hpp @@ -57,7 +57,7 @@ protected: Node* m_pBestIntermediateNode; ///< here should be node closest to the destination if path not found const YapfSettings *m_settings; ///< current settings (_patches.yapf) int m_max_search_nodes; ///< maximum number of nodes we are allowed to visit before we give up - Vehicle* m_veh; ///< vehicle that we are trying to drive + const Vehicle* m_veh; ///< vehicle that we are trying to drive int m_stats_cost_calcs; ///< stats - how many node's costs were calculated int m_stats_cache_hits; ///< stats - how many node's costs were reused from cache @@ -111,7 +111,7 @@ public: - or the open list is empty (no route to destination). - or the maximum amount of loops reached - m_max_search_nodes (default = 10000) @return true if the path was found */ - inline bool FindPath(Vehicle* v) + inline bool FindPath(const Vehicle* v) { m_veh = v; @@ -271,7 +271,7 @@ public: m_nodes.InsertOpenNode(n); } - Vehicle* GetVehicle() const {return m_veh;} + const Vehicle* GetVehicle() const {return m_veh;} // methods that should be implemented at derived class Types::Tpf (derived from CYapfBaseT) |