SV_StopServer: Use G_SetGamestate instead of a direct write

An apparent oversight identified while working on the previous commit.
This commit is contained in:
toaster 2023-11-05 18:50:33 +00:00
parent 0c645810c6
commit 3796c437ec

View file

@ -3990,7 +3990,9 @@ void SV_StopServer(void)
Y_EndIntermission();
if (gamestate == GS_VOTING)
Y_EndVote();
gamestate = wipegamestate = GS_NULL;
G_SetGamestate(GS_NULL);
wipegamestate = GS_NULL;
for (i = 0; i < MAXSPLITSCREENPLAYERS; i++)
((UINT16*)localtextcmd[i])[0] = 0;