projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b99f492
)
fixed bug with trying to display exit message screen in headless mode
author
Holger Schemel
<info@artsoft.org>
Sun, 9 Apr 2017 21:50:57 +0000
(23:50 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 23 Mar 2018 22:21:12 +0000
(23:21 +0100)
src/init.c
patch
|
blob
|
history
diff --git
a/src/init.c
b/src/init.c
index adb7afdfdb39175f0f274869049e739d7f251e56..eeb8af52d01dff918c67ccd82e3ad084cc4812bd 100644
(file)
--- 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;