mirror of https://github.com/OpenTTD/OpenTTD
Compare commits
3 Commits
3e7240f734
...
34788b433b
Author | SHA1 | Date |
---|---|---|
|
34788b433b | |
|
bac9bf93bc | |
|
abdea49d24 |
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue