Permit compiling with LOGMESSAGES disabled (and accomodate a crash early enough in the startup before the log is made, too)

This commit is contained in:
toaster 2023-04-12 15:08:17 +01:00
parent adc2adb5c8
commit 74247d8100

View file

@ -297,7 +297,10 @@ static void I_ShowErrorMessageBox(const char *messagefordevelopers, boolean dump
".rpt crash dump"
#endif
" (very important!) and " : "",
logfilename,
#ifdef LOGMESSAGES
logfilename[0] ? logfilename :
#endif
"uh oh, one wasn't made!?",
messagefordevelopers);
// Rudementary word wrapping.