mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-26 16:36:05 +00:00
Merge branch 'profile-testing' into 'master'
Add -profile through -profile4 flags for splitscreen testing See merge request KartKrew/Kart!1130
This commit is contained in:
commit
37e7b82b8b
2 changed files with 44 additions and 0 deletions
|
|
@ -2267,6 +2267,29 @@ static void CL_ConnectToServer(void)
|
|||
{
|
||||
PR_ApplyProfile(cv_lastprofile[i].value, i);
|
||||
}
|
||||
|
||||
// Slightly sucks that we have to duplicate these from d_main.c, but
|
||||
// the change to cv_lastprofile doesn't take in time for this codepath.
|
||||
if (M_CheckParm("-profile"))
|
||||
{
|
||||
UINT8 num = atoi(M_GetNextParm());
|
||||
PR_ApplyProfile(num, 0);
|
||||
}
|
||||
if (M_CheckParm("-profile2"))
|
||||
{
|
||||
UINT8 num = atoi(M_GetNextParm());
|
||||
PR_ApplyProfile(num, 1);
|
||||
}
|
||||
if (M_CheckParm("-profile3"))
|
||||
{
|
||||
UINT8 num = atoi(M_GetNextParm());
|
||||
PR_ApplyProfile(num, 2);
|
||||
}
|
||||
if (M_CheckParm("-profile4"))
|
||||
{
|
||||
UINT8 num = atoi(M_GetNextParm());
|
||||
PR_ApplyProfile(num, 3);
|
||||
}
|
||||
}
|
||||
if (gamestate == GS_INTERMISSION)
|
||||
Y_EndIntermission(); // clean up intermission graphics etc
|
||||
|
|
|
|||
21
src/d_main.c
21
src/d_main.c
|
|
@ -1874,6 +1874,27 @@ void D_SRB2Main(void)
|
|||
{
|
||||
PR_ApplyProfile(cv_lastprofile[i].value, i);
|
||||
}
|
||||
|
||||
if (M_CheckParm("-profile"))
|
||||
{
|
||||
UINT8 num = atoi(M_GetNextParm());
|
||||
PR_ApplyProfile(num, 0);
|
||||
}
|
||||
if (M_CheckParm("-profile2"))
|
||||
{
|
||||
UINT8 num = atoi(M_GetNextParm());
|
||||
PR_ApplyProfile(num, 1);
|
||||
}
|
||||
if (M_CheckParm("-profile3"))
|
||||
{
|
||||
UINT8 num = atoi(M_GetNextParm());
|
||||
PR_ApplyProfile(num, 2);
|
||||
}
|
||||
if (M_CheckParm("-profile4"))
|
||||
{
|
||||
UINT8 num = atoi(M_GetNextParm());
|
||||
PR_ApplyProfile(num, 3);
|
||||
}
|
||||
}
|
||||
|
||||
if (autostart || netgame)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue