Revert "Prevent the game from still attempting to save replays during a game exit"
This reverts commit bf8fe049c2.
This commit is contained in:
parent
bf8fe049c2
commit
40655fbe87
3 changed files with 1 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue