mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add skin change notice
This commit is contained in:
parent
6a3ee467a8
commit
0a4ced4da4
1 changed files with 16 additions and 0 deletions
|
|
@ -1134,8 +1134,14 @@ static void FinalisePlaystateChange(INT32 playernum)
|
|||
|
||||
void D_PlayerChangeSkinAndColor(player_t *p, UINT16 skin, UINT16 color, INT16 follower, UINT16 followercolor)
|
||||
{
|
||||
const UINT16 old_color = p->prefcolor;
|
||||
const UINT16 old_skin = p->prefskin;
|
||||
const INT16 old_follower = p->preffollower;
|
||||
const UINT16 old_follower_color = p->preffollowercolor;
|
||||
|
||||
// queue the rest for next round
|
||||
p->prefcolor = color % numskincolors;
|
||||
|
||||
if (K_ColorUsable(p->prefcolor, false, false) == false)
|
||||
{
|
||||
p->prefcolor = SKINCOLOR_NONE;
|
||||
|
|
@ -1154,6 +1160,16 @@ void D_PlayerChangeSkinAndColor(player_t *p, UINT16 skin, UINT16 color, INT16 fo
|
|||
// update preferences immediately
|
||||
G_UpdatePlayerPreferences(p);
|
||||
}
|
||||
else if (P_IsMachineLocalPlayer(p) == true)
|
||||
{
|
||||
if (old_color != p->prefcolor
|
||||
|| old_skin != p->prefskin
|
||||
|| old_follower != p->preffollower
|
||||
|| old_follower_color != p->preffollowercolor)
|
||||
{
|
||||
CONS_Alert(CONS_NOTICE, "Your changes will take effect next match.\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void Got_NameAndColor(const UINT8 **cp, INT32 playernum)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue