1
0
Fork 0
Matthias Urlichs 2025-06-24 07:00:01 +00:00 committed by GitHub
commit f20b7a62e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -50,8 +50,11 @@ void VideoDriver_Null::MainLoop()
{ {
uint i; uint i;
for (i = 0; i < this->ticks; i++) { for (i = 0; i < this->ticks && ! _exit_game; i++) {
{
std::lock_guard<std::mutex> lock(this->game_state_mutex);
::GameLoop(); ::GameLoop();
}
::InputLoop(); ::InputLoop();
::UpdateWindows(); ::UpdateWindows();
} }