Clear radar on cgame shutdown

This commit is contained in:
smallmodel 2023-11-26 19:30:28 +01:00
parent e50a041c12
commit 0a42fd79d2
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -689,11 +689,14 @@ Called before every level change or subsystem restart
void CG_Shutdown(void)
{
L_ShutdownEvents();
// Shutdown radar
cgi.CL_InitRadar(NULL, NULL, -1);
// some mods may need to do cleanup work here,
// like closing files or archiving session data
// hide the stats screen
cgi.UI_HideMenu("StatsScreen", 1);
cgi.UI_HideMenu("StatsScreen", qtrue);
// reset the scoreboard
CG_PrepScoreBoardInfo();