From abdea49d24189b4dd3568ac691a217b9c50763cd Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Tue, 4 Feb 2025 01:13:58 +0100 Subject: [PATCH] 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'). --- src/video/null_v.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/null_v.cpp b/src/video/null_v.cpp index e3a032d71f..787bb64feb 100644 --- a/src/video/null_v.cpp +++ b/src/video/null_v.cpp @@ -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();