Char select fixes

- Allow input for multiplayer now
- Unset all devices in this menu
This commit is contained in:
Sally Coolatta 2021-12-25 07:02:07 -05:00
parent 16730b02ef
commit e53ad4edf4

View file

@ -1899,7 +1899,6 @@ void M_CharacterSelectInit(INT32 choice)
}
memset(setup_player, 0, sizeof(setup_player));
//setup_player[0].mdepth = CSSTEP_CHARS;
setup_numplayers = 0;
memset(setup_explosions, 0, sizeof(setup_explosions));
@ -1929,6 +1928,12 @@ void M_CharacterSelectInit(INT32 choice)
}
}
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
{
// Un-set all devices upon entering this menu.
cv_usejoystick[i].value = -1;
}
PLAY_CharSelectDef.prevMenu = currentMenu;
M_SetupNextMenu(&PLAY_CharSelectDef, false);
}
@ -2222,9 +2227,6 @@ boolean M_CharacterSelectHandler(INT32 choice)
{
setup_player_t *p = &setup_player[i];
if (i > 0)
break; // temp
if (p->delay == 0 && menucmd[i].delay == 0)
{
switch (p->mdepth)