mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +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);
|
Z_Free(demo.skinlist);
|
||||||
demo.skinlist = NULL;
|
demo.skinlist = NULL;
|
||||||
|
|
||||||
if (gamestate == GS_INTERMISSION)
|
D_ClearState();
|
||||||
Y_EndIntermission(); // cleanup
|
|
||||||
|
|
||||||
if (gamestate == GS_VOTING)
|
|
||||||
Y_EndVote();
|
|
||||||
|
|
||||||
G_SetGamestate(GS_NULL);
|
|
||||||
wipegamestate = GS_NULL;
|
|
||||||
SV_StopServer();
|
|
||||||
SV_ResetServer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean G_CheckDemoStatus(void)
|
boolean G_CheckDemoStatus(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue