mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-07 21:09:40 +01:00
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').
This commit is contained in:
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
Block a user