Skip to content

Commit

Permalink
Disable autosave in Copper's func_void holding phase (#220)
Browse files Browse the repository at this point in the history
Note: not using a ground check in order to still allow
saving on ladders (usually safe momentary breaks).
  • Loading branch information
andrei-drexler committed Nov 12, 2023
1 parent 32c0729 commit 889e174
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Quake/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,11 @@ static void Host_CheckAutosave (void)
if (speed > 100.f)
return;

// Copper's func_void holds the player at the bottom for a bit before inflicting damage,
// so we can't assume it's safe to save just because we're no longer falling
if ((int)sv_player->v.movetype == MOVETYPE_NONE)
return;

elapsed = qcvm->time - sv.autosave.time - sv.autosave.cheat;
if (elapsed < 3.f)
return;
Expand Down

0 comments on commit 889e174

Please sign in to comment.