mirror of https://github.com/OpenTTD/OpenTTD
Merge bac9bf93bc
into bd2430dc94
commit
ecbffad2c9
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue