* Regular call from the global game loop */
| 3060 | * Regular call from the global game loop |
| 3061 | */ |
| 3062 | void 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 | |
| 3077 | static std::chrono::time_point<std::chrono::steady_clock> _realtime_tick_start; |
| 3078 |
no test coverage detected