diff options
author | frosch <frosch@openttd.org> | 2009-12-02 17:37:02 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-12-02 17:37:02 +0000 |
commit | 59f9163e37a7da7e8ef1cf52de8aa5e349ead5c1 (patch) | |
tree | 2119cf742c992f2df8b00ca09365f722679628d9 /src/pathfinder | |
parent | 2265202d7764d861fd3f85d10fd550cf39ba2037 (diff) | |
download | openttd-59f9163e37a7da7e8ef1cf52de8aa5e349ead5c1.tar.xz |
(svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff.
Diffstat (limited to 'src/pathfinder')
-rw-r--r-- | src/pathfinder/yapf/yapf_road.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pathfinder/yapf/yapf_road.cpp b/src/pathfinder/yapf/yapf_road.cpp index 21a125f8b..af4413111 100644 --- a/src/pathfinder/yapf/yapf_road.cpp +++ b/src/pathfinder/yapf/yapf_road.cpp @@ -11,7 +11,6 @@ #include "../../stdafx.h" #include "../../roadstop_base.h" -#include "../../cargotype.h" #include "yapf.hpp" #include "yapf_node_road.hpp" @@ -209,7 +208,7 @@ public: { m_dest_station = sid; m_destTile = destTile; - m_bus = IsCargoInClass(v->cargo_type, CC_PASSENGERS); + m_bus = v->IsBus(); m_non_artic = !v->HasArticulatedPart(); } |