(svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff.

This commit is contained in:
frosch
2009-12-02 17:37:02 +00:00
parent a3bd5f5234
commit 992bc6c345
8 changed files with 25 additions and 14 deletions

View File

@@ -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();
}