From 963eb427cf05d47a1d275f0faafea49848ee2ffc Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 18 Apr 2025 11:20:17 +0200 Subject: [PATCH] reset demo stuff for multiplayer demos when using connect command so if smth happens and we cannot connect the game wont be stuck in some weird replay limbo state --- src/d_clisrv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 7927f7b28..c22400717 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -3170,7 +3170,11 @@ static void Command_connect(void) if (Playing() || demo.title || demo.playback) { if (demo.title || demo.playback) + { G_CheckDemoStatus(); + if (multiplayer && !demo.title) // dumb hack: G_CheckDemoStatus doesent call G_StopDemo for multiplayer demos + G_StopDemo(); + } if (netgame) {