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

Method DrawType

src/road_gui.cpp:1684–1692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1682 }
1683
1684 void DrawType(int x, int y, int cls_id, int id) const override
1685 {
1686 const auto *spec = this->GetSpec(cls_id, id);
1687 if (spec == nullptr) {
1688 StationPickerDrawSprite(x, y, StationType::RoadWaypoint, INVALID_RAILTYPE, _cur_roadtype, RSV_DRIVE_THROUGH_X);
1689 } else {
1690 DrawRoadStopTile(x, y, _cur_roadtype, spec, StationType::RoadWaypoint, RSV_DRIVE_THROUGH_X);
1691 }
1692 }
1693
1694 void FillUsedItems(std::set<PickerItem> &items) override
1695 {

Callers

nothing calls this directly

Calls 3

StationPickerDrawSpriteFunction · 0.85
DrawRoadStopTileFunction · 0.85
GetSpecMethod · 0.45

Tested by

no test coverage detected