Skip to content

Commit

Permalink
Don't autosave during demo playback / recording
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Jul 28, 2024
1 parent 0623f7b commit 50bc5e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prboom2/src/dsda/save.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,11 @@ void dsda_UpdateAutoSaves(void) {

void M_AutoSave(void);

if (!dsda_IntConfig(dsda_config_auto_save) || gamestate != GS_LEVEL || gameaction != ga_nothing)
if (!dsda_IntConfig(dsda_config_auto_save) ||
gamestate != GS_LEVEL ||
gameaction != ga_nothing ||
demoplayback ||
demorecording)
return;

if (automap != gamemap || autoepisode != gameepisode) {
Expand Down

0 comments on commit 50bc5e4

Please sign in to comment.