MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WindowCullDead

Function WindowCullDead

src/openrct2/interface/Window.cpp:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 void WindowCullDead()
168 {
169 // Remove all windows in gWindowList that have the WindowFlag::dead flag
170 gWindowList.erase(
171 std::remove_if(
172 gWindowList.begin(), gWindowList.end(), [](auto&& w) -> bool { return w->flags.has(WindowFlag::dead); }),
173 gWindowList.end());
174 }
175
176 /**
177 *

Callers 2

WindowUpdateAllFunction · 0.85
CleanupMethod · 0.85

Calls 3

endMethod · 0.65
hasMethod · 0.65
beginMethod · 0.45

Tested by

no test coverage detected