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

Method DrawType

src/rail_gui.cpp:1029–1034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027 }
1028
1029 void DrawType(int x, int y, int cls_id, int id) const override
1030 {
1031 if (!DrawStationTile(x, y, _cur_railtype, _station_gui.axis, this->GetClassIndex(cls_id), id)) {
1032 StationPickerDrawSprite(x, y, StationType::Rail, _cur_railtype, INVALID_ROADTYPE, 2 + _station_gui.axis);
1033 }
1034 }
1035
1036 void FillUsedItems(std::set<PickerItem> &items) override
1037 {

Callers

nothing calls this directly

Calls 3

DrawStationTileFunction · 0.85
StationPickerDrawSpriteFunction · 0.85
GetClassIndexMethod · 0.80

Tested by

no test coverage detected