mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-28 02:32:48 +00:00
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:
parent
e4b81494d6
commit
d97db8f230
2 changed files with 4 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue