mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-04 22:16:35 +00:00
G_StopDemo: use D_ClearState
- D_ClearState does the necessary cleanup and more - Fix splitscreen viewcount not being reset when demo ends
This commit is contained in:
parent
ebbe8203a2
commit
4c3bad0b12
1 changed files with 1 additions and 10 deletions
11
src/g_demo.c
11
src/g_demo.c
|
|
@ -4252,16 +4252,7 @@ void G_StopDemo(void)
|
|||
Z_Free(demo.skinlist);
|
||||
demo.skinlist = NULL;
|
||||
|
||||
if (gamestate == GS_INTERMISSION)
|
||||
Y_EndIntermission(); // cleanup
|
||||
|
||||
if (gamestate == GS_VOTING)
|
||||
Y_EndVote();
|
||||
|
||||
G_SetGamestate(GS_NULL);
|
||||
wipegamestate = GS_NULL;
|
||||
SV_StopServer();
|
||||
SV_ResetServer();
|
||||
D_ClearState();
|
||||
}
|
||||
|
||||
boolean G_CheckDemoStatus(void)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue