mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
-splitscreen launcher option
Now you can join a game in splitscreen mode from a launcher
This commit is contained in:
parent
b33ad2ad2a
commit
59c4400a60
1 changed files with 15 additions and 0 deletions
15
src/d_main.c
15
src/d_main.c
|
|
@ -1377,11 +1377,26 @@ void D_SRB2Main(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set up splitscreen players before joining!
|
||||||
|
if (!dedicated && (M_CheckParm("-splitscreen") && M_IsNextParm()))
|
||||||
|
{
|
||||||
|
UINT8 num = atoi(M_GetNextParm());
|
||||||
|
if (num >= 1 && num <= 4)
|
||||||
|
{
|
||||||
|
CV_StealthSetValue(&cv_splitplayers, num);
|
||||||
|
splitscreen = num-1;
|
||||||
|
SplitScreen_OnChange();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// init all NETWORK
|
// init all NETWORK
|
||||||
CONS_Printf("D_CheckNetGame(): Checking network game status.\n");
|
CONS_Printf("D_CheckNetGame(): Checking network game status.\n");
|
||||||
if (D_CheckNetGame())
|
if (D_CheckNetGame())
|
||||||
autostart = true;
|
autostart = true;
|
||||||
|
|
||||||
|
if (splitscreen) // Make sure multiplayer & autostart is set if you have splitscreen, even after D_CheckNetGame
|
||||||
|
multiplayer = autostart = true;
|
||||||
|
|
||||||
// check for a driver that wants intermission stats
|
// check for a driver that wants intermission stats
|
||||||
// start the apropriate game based on parms
|
// start the apropriate game based on parms
|
||||||
if (M_CheckParm("-metal"))
|
if (M_CheckParm("-metal"))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue