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/station.cpp | |
parent | 2265202d7764d861fd3f85d10fd550cf39ba2037 (diff) | |
download | openttd-59f9163e37a7da7e8ef1cf52de8aa5e349ead5c1.tar.xz |
(svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff.
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/station.cpp b/src/station.cpp index 09204ec0a..a3c58052a 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -11,7 +11,6 @@ #include "stdafx.h" #include "company_func.h" -#include "cargotype.h" #include "roadveh.h" #include "functions.h" #include "window_func.h" @@ -119,7 +118,7 @@ void BaseStation::PostDestructor(size_t index) */ RoadStop *Station::GetPrimaryRoadStop(const RoadVehicle *v) const { - RoadStop *rs = this->GetPrimaryRoadStop(IsCargoInClass(v->cargo_type, CC_PASSENGERS) ? ROADSTOP_BUS : ROADSTOP_TRUCK); + RoadStop *rs = this->GetPrimaryRoadStop(v->IsBus() ? ROADSTOP_BUS : ROADSTOP_TRUCK); for (; rs != NULL; rs = rs->next) { /* The vehicle cannot go to this roadstop (different roadtype) */ |