invalid skins when starting a local game no longer break
see https://mb.srb2.org/showthread.php?t=41370
This commit is contained in:
1 parent
460620ff8a
commit
652ddfef9a
1 file changed
+14
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user