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

Method BuildSignsList

src/signs_gui.cpp:60–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 void BuildSignsList()
61 {
62 if (!this->signs.NeedRebuild()) return;
63
64 Debug(misc, 3, "Building sign list");
65
66 this->signs.clear();
67 this->signs.reserve(Sign::GetNumItems());
68
69 for (const Sign *si : Sign::Iterate()) this->signs.push_back(si);
70
71 this->signs.SetFilterState(true);
72 this->FilterSignList();
73 this->signs.RebuildDone();
74 }
75
76 /** Sort signs by their name */
77 static bool SignNameSorter(const Sign * const &a, const Sign * const &b)

Callers 3

BuildSortSignListMethod · 0.80
PrevNextSignMethod · 0.80
OnClickMethod · 0.80

Calls 7

FilterSignListMethod · 0.95
NeedRebuildMethod · 0.80
reserveMethod · 0.80
push_backMethod · 0.80
SetFilterStateMethod · 0.80
RebuildDoneMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected