mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
ForceAllSkins cleanup
This commit is contained in:
parent
990a3500bc
commit
8179b39773
1 changed files with 10 additions and 11 deletions
|
|
@ -1407,26 +1407,25 @@ boolean CanChangeSkinWhilePlaying(INT32 playernum)
|
||||||
|
|
||||||
static void ForceAllSkins(INT32 forcedskin)
|
static void ForceAllSkins(INT32 forcedskin)
|
||||||
{
|
{
|
||||||
INT32 i, j;
|
INT32 i;
|
||||||
for (i = 0; i < MAXPLAYERS; ++i)
|
for (i = 0; i < MAXPLAYERS; ++i)
|
||||||
{
|
{
|
||||||
if (!playeringame[i])
|
if (!playeringame[i])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
SetPlayerSkinByNum(i, forcedskin);
|
SetPlayerSkinByNum(i, forcedskin);
|
||||||
|
}
|
||||||
|
|
||||||
// If it's me (or my brother (or my sister (or my trusty pet dog))), set appropriate skin value in cv_skin
|
if (dedicated)
|
||||||
if (dedicated) // But don't do this for dedicated servers, of course.
|
return;
|
||||||
|
|
||||||
|
// If it's me (or my brother (or my sister (or my trusty pet dog))), set appropriate skin value in cv_skin
|
||||||
|
for (i = 0; i <= splitscreen; i++)
|
||||||
|
{
|
||||||
|
if (!playeringame[g_localplayers[i]])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (j = 0; j <= splitscreen; j++)
|
CV_StealthSet(&cv_skin[i], skins[forcedskin].name);
|
||||||
{
|
|
||||||
if (i == g_localplayers[j])
|
|
||||||
{
|
|
||||||
CV_StealthSet(&cv_skin[j], skins[forcedskin].name);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue