From 3796c437ec875a2d84332eef9b92cc9ab5905f34 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 5 Nov 2023 18:50:33 +0000 Subject: [PATCH] SV_StopServer: Use G_SetGamestate instead of a direct write An apparent oversight identified while working on the previous commit. --- src/d_clisrv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index b33149803..6982b120a 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -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;