mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Character Select: If your profile's color/followercolor have not been unlocked, correct the visible colour to Default when selecting your Profile, instead of on Level start
This commit is contained in:
parent
de60a2dbba
commit
0e9997f2cd
1 changed files with 10 additions and 7 deletions
|
|
@ -181,6 +181,10 @@ static void M_SetupProfileGridPos(setup_player_t *p)
|
|||
p->followercategory = followers[p->followern].category;
|
||||
|
||||
p->followercolor = pr->followercolor;
|
||||
if (K_ColorUsable(p->followercolor, true, true) == false)
|
||||
{
|
||||
p->followercolor = SKINCOLOR_NONE;
|
||||
}
|
||||
|
||||
if (!R_SkinUsable(g_localplayers[0], i, false))
|
||||
{
|
||||
|
|
@ -196,7 +200,13 @@ static void M_SetupProfileGridPos(setup_player_t *p)
|
|||
alt++;
|
||||
|
||||
p->clonenum = alt;
|
||||
|
||||
p->color = pr->color;
|
||||
if (K_ColorUsable(p->color, false, true) == false)
|
||||
{
|
||||
p->color = SKINCOLOR_NONE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void M_SetupMidGameGridPos(setup_player_t *p, UINT8 num)
|
||||
|
|
@ -1256,13 +1266,6 @@ boolean M_CharacterSelectHandler(INT32 choice)
|
|||
p->skin = setup_chargrid[p->gridx][p->gridy].skinlist[p->clonenum];
|
||||
}
|
||||
|
||||
// Keep profile colour.
|
||||
/*if (p->mdepth < CSSTEP_COLORS)
|
||||
{
|
||||
p->color = skins[p->skin].prefcolor;
|
||||
|
||||
}*/
|
||||
|
||||
if (playersChanged == true)
|
||||
{
|
||||
setup_page = 0; // reset that.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue