G_DoLoadLevel: do not apply profile if demo is played from titlescreen

This commit is contained in:
toaster 2023-02-05 13:33:31 +00:00
parent ac2255572a
commit e874b5ba18
2 changed files with 2 additions and 2 deletions

View file

@ -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++)

View file

@ -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++)