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

Method IsActive

src/rail_gui.cpp:982–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980 StringID GetTypeTooltip() const override { return STR_PICKER_STATION_TYPE_TOOLTIP; }
981
982 bool IsActive() const override
983 {
984 for (const auto &cls : StationClass::Classes()) {
985 if (IsWaypointClass(cls)) continue;
986 for (const auto *spec : cls.Specs()) {
987 if (spec != nullptr) return true;
988 }
989 }
990 return false;
991 }
992
993 bool HasClassChoice() const override
994 {

Callers 1

ShowBuildWaypointPickerFunction · 0.45

Calls 2

SpecsMethod · 0.80
IsWaypointClassFunction · 0.70

Tested by

no test coverage detected