Revert "Prevent the game from still attempting to save replays during a game exit"

This reverts commit bf8fe049c2.
This commit is contained in:
yamamama 2025-11-20 06:13:44 -05:00
parent bf8fe049c2
commit 40655fbe87
3 changed files with 1 additions and 8 deletions

View file

@ -4364,7 +4364,7 @@ boolean G_CheckDemoStatus(void)
return true;
}
if (demo.recording && (modeattacking || demo.savemode != DSM_NOTSAVING) && (!demo.gamequit))
if (demo.recording && (modeattacking || demo.savemode != DSM_NOTSAVING))
{
G_SaveDemo();
return true;

View file

@ -59,7 +59,6 @@ struct demovars_s {
} savemode;
boolean freecam;
boolean gamequit; // Game is exiting.
const savebuffer_t *buffer; // debug, valid only if recording or playback
};

View file

@ -1936,13 +1936,7 @@ void I_Quit(void)
// but sometimes we forget and use 'F10'.. so save here too.
if (demo.recording)
{
// SIGSEGV #8 is caused by the game still trying to save to an empty pointer.
// Prevent that by doing... this!
demo.gamequit = true;
G_CheckDemoStatus();
}
if (metalrecording)
G_StopMetalRecording(false);