Fix skincolor selection

This commit is contained in:
Sally Coolatta 2020-08-23 14:51:02 -04:00
parent 388528d7b8
commit d755a7ae6c

View file

@ -9511,7 +9511,7 @@ static void M_DrawSetupMultiPlayerMenu(void)
#define charw 72 #define charw 72
#define indexwidth 8 #define indexwidth 8
{ {
const INT32 numcolors = (282-charw)/(2*indexwidth); // Number of colors per side const INT32 numcolors = (250-charw)/(2*indexwidth); // Number of colors per side
INT32 x = mx; INT32 x = mx;
INT32 w = indexwidth; // Width of a singular color block INT32 w = indexwidth; // Width of a singular color block
menucolor_t *mc = setupm_fakecolor->prev; // Last accessed color menucolor_t *mc = setupm_fakecolor->prev; // Last accessed color
@ -10079,6 +10079,11 @@ static boolean M_QuitMultiPlayerMenu(void)
void M_AddMenuColor(UINT16 color) { void M_AddMenuColor(UINT16 color) {
menucolor_t *c; menucolor_t *c;
// SRB2Kart: I do not understand vanilla doesn't need this but WE do???!?!??!
if (!skincolors[color].accessible) {
return;
}
if (color >= numskincolors) { if (color >= numskincolors) {
CONS_Printf("M_AddMenuColor: color %d does not exist.",color); CONS_Printf("M_AddMenuColor: color %d does not exist.",color);
return; return;