mirror of https://github.com/OpenTTD/OpenTTD
Merge bac9bf93bc
into bd2430dc94
commit
ecbffad2c9
|
@ -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++) {
|
||||||
::GameLoop();
|
{
|
||||||
|
std::lock_guard<std::mutex> lock(this->game_state_mutex);
|
||||||
|
::GameLoop();
|
||||||
|
}
|
||||||
::InputLoop();
|
::InputLoop();
|
||||||
::UpdateWindows();
|
::UpdateWindows();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue