Plug the last gap that allowed you to avoid selecting a profile.

There's no actual good way to handle the case of changing your skin, etc, maybe even various controls for a momentary test AND supporting profiles, so don't even try. Instead, let the game "pretend" you selected ttlprofilen to let it just about work.

This works because all the relevant cvars and controls still get saved to the config when changed... they just get written over when you select a profile. So if you haven't changed anything since your last successful launch, it is now functionally indistinguishable.
This commit is contained in:
toaster 2022-09-03 00:19:03 +01:00
parent 8946bf9e01
commit 139def0d3d
2 changed files with 4 additions and 0 deletions

View file

@ -1992,6 +1992,8 @@ static void CL_ConnectToServer(void)
CONS_Printf(M_GetText("Contacting the server...\n"));
}
if (cv_currprofile.value == -1)
PR_ApplyProfilePretend(cv_ttlprofilen.value, 0);
if (gamestate == GS_INTERMISSION)
Y_EndIntermission(); // clean up intermission graphics etc
if (gamestate == GS_VOTING)

View file

@ -1265,6 +1265,8 @@ void G_DoLoadLevel(boolean resetplayer)
if (wipegamestate == GS_LEVEL)
wipegamestate = -1; // force a wipe
if (cv_currprofile.value == -1)
PR_ApplyProfilePretend(cv_ttlprofilen.value, 0);
if (gamestate == GS_INTERMISSION)
Y_EndIntermission();
if (gamestate == GS_VOTING)