Disable error messages while fuzzing

This commit is contained in:
Antonio Martinez 2025-07-03 03:08:18 -04:00 committed by VelocitOni
parent 9d395396db
commit 8c14e85129

View file

@ -1769,7 +1769,8 @@ void I_Error(const char *error, ...)
// Implement message box with SDL_ShowSimpleMessageBox,
// which should fail gracefully if it can't put a message box up
// on the target system
if (!M_CheckParm("-dedicated"))
extern consvar_t cv_fuzz;
if (!M_CheckParm("-dedicated") && !(cv_fuzz.value))
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
"Dr. Robotnik's Ring Racers " VERSIONSTRING " Recursive Error",
buffer, NULL);
@ -1814,7 +1815,9 @@ void I_Error(const char *error, ...)
I_ShutdownGraphics();
I_ShutdownInput();
I_ShowErrorMessageBox(buffer, false);
extern consvar_t cv_fuzz;
if (!cv_fuzz.value)
I_ShowErrorMessageBox(buffer, false);
// We wait until now to do this so the funny sound can be heard
I_ShutdownSound();