From d7fe7990974e7c48239a4b40dec9dcb2326a6556 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 18 Apr 2025 11:20:58 +0200 Subject: [PATCH] fix record attack condition in G_CheckDemoStatus --- src/g_game.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index 6de3b1c20..89917b268 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -8017,7 +8017,7 @@ void G_StopDemo(void) demobuf.buffer = NULL; demo.playback = false; if (demo.title) - modeattacking = false; + modeattacking = ATTACKING_NONE; demo.title = false; demo.timing = false; singletics = false; @@ -8088,12 +8088,16 @@ boolean G_CheckDemoStatus(void) I_Quit(); if (multiplayer && !demo.title) + { G_ExitLevel(); + } else { + UINT8 wasmodeattacking = modeattacking; + G_StopDemo(); - if (modeattacking) + if (wasmodeattacking) M_EndModeAttackRun(); else D_StartTitle();