mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Null video driver: End on game exit
The Null driver now exits when the game ends. It also gains the ability to run for an unlimited number of ticks (using '-v null:ticks=0').pull/13467/head
parent
1f7760dc7a
commit
abdea49d24
|
@ -50,7 +50,7 @@ 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();
|
::GameLoop();
|
||||||
::InputLoop();
|
::InputLoop();
|
||||||
::UpdateWindows();
|
::UpdateWindows();
|
||||||
|
|
Loading…
Reference in New Issue