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

Function CallWindowGameTickEvent

src/window.cpp:3326–3331  ·  view source on GitHub ↗

* Dispatch OnGameTick event over all windows */

Source from the content-addressed store, hash-verified

3324 * Dispatch OnGameTick event over all windows
3325 */
3326void CallWindowGameTickEvent()
3327{
3328 for (Window *w : Window::Iterate()) {
3329 w->OnGameTick();
3330 }
3331}
3332
3333/**
3334 * Try to close a non-vital window.

Callers 1

StateGameLoopFunction · 0.85

Calls 1

OnGameTickMethod · 0.45

Tested by

no test coverage detected