mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
PLAY_MP_OptSelectDef: Integrate M_MPOptSelectInit into M_SpecificMenuRestore
This commit is contained in:
parent
7b483f9c75
commit
39dadf1b1e
2 changed files with 10 additions and 7 deletions
|
|
@ -410,6 +410,11 @@ menu_t *M_SpecificMenuRestore(menu_t *torestore)
|
||||||
torestore = &EXTRAS_MainDef;
|
torestore = &EXTRAS_MainDef;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (torestore == &PLAY_MP_OptSelectDef)
|
||||||
|
{
|
||||||
|
// Ticker init
|
||||||
|
M_MPOptSelectInit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
if (setup_numplayers == 0)
|
if (setup_numplayers == 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -47,23 +47,21 @@ boolean M_MPResetOpts(void)
|
||||||
void M_MPOptSelectInit(INT32 choice)
|
void M_MPOptSelectInit(INT32 choice)
|
||||||
{
|
{
|
||||||
INT16 arrcpy[3][3] = {{0,68,0}, {0,12,0}, {0,74,0}};
|
INT16 arrcpy[3][3] = {{0,68,0}, {0,12,0}, {0,74,0}};
|
||||||
UINT8 i = 0, j = 0; // To copy the array into the struct
|
|
||||||
const UINT32 forbidden = GTR_FORBIDMP;
|
const UINT32 forbidden = GTR_FORBIDMP;
|
||||||
|
|
||||||
(void)choice;
|
|
||||||
|
|
||||||
mpmenu.modechoice = 0;
|
mpmenu.modechoice = 0;
|
||||||
mpmenu.ticker = 0;
|
mpmenu.ticker = 0;
|
||||||
|
|
||||||
for (; i < 3; i++)
|
memcpy(&mpmenu.modewinextend, &arrcpy, sizeof(mpmenu.modewinextend));
|
||||||
for (j = 0; j < 3; j++)
|
|
||||||
mpmenu.modewinextend[i][j] = arrcpy[i][j]; // I miss Lua already
|
|
||||||
|
|
||||||
// Guarantee menugametype is good
|
// Guarantee menugametype is good
|
||||||
M_NextMenuGametype(forbidden);
|
M_NextMenuGametype(forbidden);
|
||||||
M_PrevMenuGametype(forbidden);
|
M_PrevMenuGametype(forbidden);
|
||||||
|
|
||||||
|
if (choice != -1)
|
||||||
|
{
|
||||||
M_SetupNextMenu(&PLAY_MP_OptSelectDef, false);
|
M_SetupNextMenu(&PLAY_MP_OptSelectDef, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void M_MPOptSelectTick(void)
|
void M_MPOptSelectTick(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue