From e874b5ba182555c53ef90e1354d7a1881d490c15 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 5 Feb 2023 13:33:31 +0000 Subject: [PATCH] G_DoLoadLevel: do not apply profile if demo is played from titlescreen --- src/d_clisrv.c | 2 +- src/g_game.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 53ed80968..f53d1f35a 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -2066,7 +2066,7 @@ static void CL_ConnectToServer(void) CONS_Printf(M_GetText("Contacting the server...\n")); } - if (cv_currprofile.value == -1) + if (cv_currprofile.value == -1 && !demo.playback) { PR_ApplyProfilePretend(cv_ttlprofilen.value, 0); for (i = 1; i < cv_splitplayers.value; i++) diff --git a/src/g_game.c b/src/g_game.c index 700f76f92..6b46afcd8 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -1351,7 +1351,7 @@ void G_DoLoadLevel(boolean resetplayer) if (wipegamestate == GS_LEVEL) wipegamestate = -1; // force a wipe - if (cv_currprofile.value == -1) + if (cv_currprofile.value == -1 && !demo.playback) { PR_ApplyProfilePretend(cv_ttlprofilen.value, 0); for (i = 1; i < cv_splitplayers.value; i++)