X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=eeb8af52d01dff918c67ccd82e3ad084cc4812bd;hb=c6edf400f39aca3fa8e75907bbeb4b8a488485ad;hp=adb7afdfdb39175f0f274869049e739d7f251e56;hpb=b99f492ccd77b0105e61b95780c44959f588da25;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index adb7afdf..eeb8af52 100644 --- a/src/init.c +++ b/src/init.c @@ -5878,6 +5878,10 @@ void KeyboardAutoRepeatOffUnlessAutoplay() void DisplayExitMessage(char *format, va_list ap) { + // also check for initialized video (headless flag may be temporarily unset) + if (program.headless || !video.initialized) + return; + // check if draw buffer and fonts for exit message are already available if (drawto == NULL || font_initial[NUM_INITIAL_FONTS - 1].bitmap == NULL) return;