Do not reapply P1's Profile in full in edit menu flow

Prevents changing player skin/color cvar when backing out (resolves KartKrew/RingRacers#34)
This commit is contained in:
toaster 2024-08-18 19:40:58 +01:00
parent e4b81494d6
commit d97db8f230
2 changed files with 4 additions and 9 deletions

View file

@ -115,15 +115,10 @@ static void M_ProfileEditApply(void)
CV_SetValue(&cv_fov[belongsto], cv_dummyprofilefov.value);
}
// Reapply player 1's real profile.
// (And then we do this for P1 anyway. I didn't write
// this code so I'm not sure why it's doing this, but it
// can override cv_skin if forcecharacter is in effect!
// I suspect this is intended to set cv_currprofile.
// FIXME?)
// Reapply player 1's real profile ID.
if (cv_currprofile.value > -1)
{
PR_ApplyProfile(cv_lastprofile[0].value, 0);
PR_ApplyProfilePretend(cv_lastprofile[0].value, 0);
}
}

View file

@ -278,10 +278,10 @@ void M_ProfileControlsConfirm(INT32 choice)
M_ProfileControlSaveResponse(MA_YES);
// Reapply player 1's real profile.
// Reapply player 1's real profile ID.
if (cv_currprofile.value > -1)
{
PR_ApplyProfile(cv_lastprofile[0].value, 0);
PR_ApplyProfilePretend(cv_lastprofile[0].value, 0);
}
}