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

Function InputLoop

src/window.cpp:3062–3075  ·  view source on GitHub ↗

* Regular call from the global game loop */

Source from the content-addressed store, hash-verified

3060 * Regular call from the global game loop
3061 */
3062void InputLoop()
3063{
3064 /* World generation is multithreaded and messes with companies.
3065 * But there is no company related window open anyway, so _current_company is not used. */
3066 assert(HasModalProgress() || IsLocalCompany());
3067
3068 CheckSoftLimit();
3069
3070 /* Process scheduled window deletion. */
3071 Window::DeleteClosedWindows();
3072
3073 /* HandleMouseEvents was already called for this tick */
3074 HandleMouseEvents();
3075}
3076
3077static std::chrono::time_point<std::chrono::steady_clock> _realtime_tick_start;
3078

Callers 2

MainLoopMethod · 0.85
TickMethod · 0.85

Calls 4

HasModalProgressFunction · 0.85
IsLocalCompanyFunction · 0.85
CheckSoftLimitFunction · 0.85
HandleMouseEventsFunction · 0.85

Tested by

no test coverage detected