Allow character select for NiGHTS stages on the Secret Level Select now that every character has NiGHTS sprites.
(think of this as the collorary to 358, not a direct change)
This commit is contained in:
parent
d99e3f8337
commit
5cf803f7d0
16
src/m_menu.c
16
src/m_menu.c
|
@ -8340,10 +8340,7 @@ static void M_SetupChoosePlayer(INT32 choice)
|
||||||
char *and;
|
char *and;
|
||||||
(void)choice;
|
(void)choice;
|
||||||
|
|
||||||
if (!(mapheaderinfo[startmap-1]
|
if (!mapheaderinfo[startmap-1] || mapheaderinfo[startmap-1]->forcecharacter[0] == '\0')
|
||||||
&& (mapheaderinfo[startmap-1]->forcecharacter[0] != '\0'
|
|
||||||
|| (mapheaderinfo[startmap-1]->typeoflevel & TOL_NIGHTS)) // remove this later when everyone gets their own nights sprites, maybe
|
|
||||||
))
|
|
||||||
{
|
{
|
||||||
for (i = 0; i < 32; i++) // Handle charsels, availability, and unlocks.
|
for (i = 0; i < 32; i++) // Handle charsels, availability, and unlocks.
|
||||||
{
|
{
|
||||||
|
@ -8406,17 +8403,16 @@ static void M_SetupChoosePlayer(INT32 choice)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (firstvalid != 255)
|
if (firstvalid == 255) // We're being forced into a specific character, so might as well just skip it.
|
||||||
{ // One last bit of order we can't do in the iteration above.
|
|
||||||
description[firstvalid].prev = lastvalid;
|
|
||||||
description[lastvalid].next = firstvalid;
|
|
||||||
}
|
|
||||||
else // We're being forced into a specific character, so might as well just skip it.
|
|
||||||
{
|
{
|
||||||
M_ChoosePlayer(-1);
|
M_ChoosePlayer(-1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// One last bit of order we can't do in the iteration above.
|
||||||
|
description[firstvalid].prev = lastvalid;
|
||||||
|
description[lastvalid].next = firstvalid;
|
||||||
|
|
||||||
M_ChangeMenuMusic("_chsel", true);
|
M_ChangeMenuMusic("_chsel", true);
|
||||||
|
|
||||||
/* the menus suck -James */
|
/* the menus suck -James */
|
||||||
|
|
Loading…
Reference in a new issue