Mark main thread as the game thread if video driver not using threads

This commit is contained in:
Jonathan G Rennison
2023-08-28 20:27:05 +01:00
parent e92ee922cf
commit 8f209b0dc4

View File

@@ -103,6 +103,8 @@ void VideoDriver::StartGameThread()
this->is_game_threaded = StartNewThread(&this->game_thread, "ottd:game", &VideoDriver::GameThreadThunk, this);
}
if (!this->is_game_threaded) SetSelfAsGameThread();
DEBUG(driver, 1, "using %sthread for game-loop", this->is_game_threaded ? "" : "no ");
}