remove reduntant stuff from D_ClearState and G_StopDemo

we only need R_ExecuteSetViewSize from splitscreen_onchange, the rest doesent do anything due to SV_StopServer call earlier setting cl_mode to CL_ABORTED
SV_StopServer also calls Y_EndIntermission and Y_EndVote if necessary
This commit is contained in:
Alug committed 2025-10-28 01:21:38 +01:00
1 parent 694a8eeb69
commit 45ee50b47d
2 files changed
+3 -24

No files matched your search

+3 -19
View File
@@ -954,24 +954,6 @@ void D_SRB2Loop(void)
// D_SRB2Main
// =========================================================================
static void ResetSplitScreen(void)
{
UINT8 i;
// recompute screen size
R_ExecuteSetViewSize();
if (!demo.playback && !botingame)
{
for (i = 1; i < MAXSPLITSCREENPLAYERS; i++)
{
if (i > splitscreen)
CL_RemoveSplitscreenPlayer(displayplayers[i]);
else
CL_AddSplitscreenPlayer();
}
}
}
//
// D_ClearState
//
@@ -992,7 +974,9 @@ void D_ClearState(void)
CL_ClearPlayer(i);
splitscreen = 0;
ResetSplitScreen(); // splitscreen onchange resets us to singleplayer :chaosleep:
// recompute screen size
R_ExecuteSetViewSize();
botingame = false;
botskin = 0;
-5
View File
@@ -3494,11 +3494,6 @@ void G_StopDemo(void)
demo.rewinding = false;
CL_ClearRewinds();
if (gamestate == GS_INTERMISSION)
Y_EndIntermission(); // cleanup
if (gamestate == GS_VOTING)
Y_EndVote();
D_ClearState();
}