mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 05:11:01 +00:00
invalid skins when starting a local game no longer break
see https://mb.srb2.org/showthread.php?t=41370
This commit is contained in:
parent
460620ff8a
commit
652ddfef9a
1 changed files with 14 additions and 0 deletions
|
@ -1113,6 +1113,13 @@ static void SendNameAndColor(void)
|
|||
players[consoleplayer].mo->color = (UINT8)players[consoleplayer].skincolor;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
cv_skin.value = players[consoleplayer].skin;
|
||||
CV_StealthSet(&cv_skin, skins[players[consoleplayer].skin].name);
|
||||
// will always be same as current
|
||||
SetPlayerSkin(consoleplayer, cv_skin.string);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -1230,6 +1237,13 @@ static void SendNameAndColor2(void)
|
|||
players[secondplaya].mo->color = players[secondplaya].skincolor;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
cv_skin.value = players[secondplaya].skin;
|
||||
CV_StealthSet(&cv_skin, skins[players[secondplaya].skin].name);
|
||||
// will always be same as current
|
||||
SetPlayerSkin(secondplaya, cv_skin.string);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue