From: Holger Schemel Date: Thu, 19 Jan 2023 08:08:22 +0000 (+0100) Subject: fixed crash bug when running in headless mode X-Git-Tag: 4.3.5.0~34 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3ca52442121dc311d2ead0dbf3b366ea367fcdeb;p=rocksndiamonds.git fixed crash bug when running in headless mode --- diff --git a/src/libgame/sdl.c b/src/libgame/sdl.c index baa53340..9f97f536 100644 --- a/src/libgame/sdl.c +++ b/src/libgame/sdl.c @@ -69,6 +69,9 @@ static void FinalizeScreen(int draw_target) static void UpdateScreenExt(SDL_Rect *rect, boolean with_frame_delay) { + if (program.headless) + return; + static DelayCounter update_screen_delay = { 50 }; // (milliseconds) SDL_Surface *screen = backbuffer->surface;