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:
Matthias Urlichs 2025-02-04 01:13:58 +01:00
parent 1f7760dc7a
commit abdea49d24

View File

@ -50,7 +50,7 @@ void VideoDriver_Null::MainLoop()
{
uint i;
for (i = 0; i < this->ticks; i++) {
for (i = 0; i < this->ticks && ! _exit_game; i++) {
::GameLoop();
::InputLoop();
::UpdateWindows();