Add road/tram type flag to disallow collisions with trains
This commit is contained in:
@@ -155,6 +155,7 @@ struct RoadVehicle FINAL : public GroundVehicle<RoadVehicle, VEH_ROAD> {
|
||||
|
||||
inline bool IsRoadVehicleOnLevelCrossing() const
|
||||
{
|
||||
if (HasBit(_roadtypes_non_train_colliding, this->roadtype)) return false;
|
||||
for (const RoadVehicle *u = this; u != nullptr; u = u->Next()) {
|
||||
if (IsLevelCrossingTile(u->tile)) return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user