mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-04-02 08:21:09 +00:00
-splitscreen launcher option
Now you can join a game in splitscreen mode from a launcher
This commit is contained in:
parent
85ed88ac20
commit
34aa3762c9
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
|
||||
}
|
||||
|
||||
// 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
|
||||
CONS_Printf("D_CheckNetGame(): Checking network game status.\n");
|
||||
if (D_CheckNetGame())
|
||||
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
|
||||
// start the apropriate game based on parms
|
||||
if (M_CheckParm("-metal"))
|
||||
|
|
Loading…
Reference in a new issue