MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsTypeAvailable

Method IsTypeAvailable

src/road_gui.cpp:1256–1260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1254 }
1255
1256 bool IsTypeAvailable(int cls_id, int id) const override
1257 {
1258 const auto *spec = this->GetSpec(cls_id, id);
1259 return IsRoadStopAvailable(spec, roadstoptype == RoadStopType::Bus ? StationType::Bus : StationType::Truck);
1260 }
1261
1262 void DrawType(int x, int y, int cls_id, int id) const override
1263 {

Callers

nothing calls this directly

Calls 2

IsRoadStopAvailableFunction · 0.85
GetSpecMethod · 0.45

Tested by

no test coverage detected