From 889e174468b85955c2a91e6be511bb55dcc09a07 Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Sun, 12 Nov 2023 15:32:09 +0100 Subject: [PATCH] Disable autosave in Copper's func_void holding phase (#220) Note: not using a ground check in order to still allow saving on ladders (usually safe momentary breaks). --- Quake/host.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Quake/host.c b/Quake/host.c index 987f85d9a..3d620cd6f 100644 --- a/Quake/host.c +++ b/Quake/host.c @@ -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;