From 7cd1b99fdb5d798474fc53d13fcbbc8cc9592da3 Mon Sep 17 00:00:00 2001 From: SteelT Date: Tue, 18 Aug 2020 22:45:01 -0400 Subject: [PATCH] Quit on error fix --- src/sdl/i_system.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index e20737412..47c7c5e20 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -1489,8 +1489,6 @@ void I_UpdateMumble(const mobj_t *mobj, const listener_t listener) #undef WINMUMBLE #endif // NOMUMBLE -#endif // HAVE_SDL - // // I_Tactile // @@ -1940,13 +1938,15 @@ void I_Error(const char *error, ...) #endif G_SaveGameData(); // Tails 12-08-2002 + // Shutdown. Here might be other errors. + /* Prevent segmentation fault if testers go to Record Attack... */ #ifndef TESTERS - // Shutdown. Here might be other errors. if (demo.recording) G_CheckDemoStatus(); if (metalrecording) G_StopMetalRecording(false); +#endif D_QuitNetGame(); CL_AbortDownloadResume(); @@ -2677,4 +2677,5 @@ const CPUInfoFlags *I_CPUInfo(void) // note CPUAFFINITY code used to reside here void I_RegisterSysCommands(void) {} -#endif + +#endif // HAVE_SDL