1
0
Fork 0
Matthias Urlichs 2025-06-26 07:33:45 +00:00 committed by GitHub
commit ecbffad2c9
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;
for (i = 0; i < this->ticks; i++) {
::GameLoop();
for (i = 0; i < this->ticks && ! _exit_game; i++) {
{
std::lock_guard<std::mutex> lock(this->game_state_mutex);
::GameLoop();
}
::InputLoop();
::UpdateWindows();
}