void SV_ClearLastLevel(void) { Menu_Reset(); Z_TagFree(TAG_G_ALLOC); Z_TagFree(TAG_UI_ALLOC); G_FreeRoffs(); R_ModelFree(); Music_Free(); Sys_IORequestQueueClear(); AS_FreePartial(); G_ASPreCacheFree(); Ghoul2InfoArray_Free(); G2_FreeRag(); ClearAllNavStructures(); ClearModelsAlreadyDone(); CL_FreeServerCommands(); CL_FreeReliableCommands(); CM_Free(); ShaderEntryPtrs_Clear(); numVehicles = 0; if (svs.clients) { SV_FreeClient( svs.clients ); } }
/* ================= ShutdownGame ================= */ void ShutdownGame( void ) { gi.Printf ("==== ShutdownGame ====\n"); gi.Printf ("... ICARUS_Shutdown\n"); ICARUS_Shutdown (); //Shut ICARUS down gi.Printf ("... Reference Tags Cleared\n"); TAG_Init(); //Clear the reference tags gi.Printf ("... Navigation Data Cleared\n"); NAV_Shutdown(); // write all the client session data so we can get it back G_WriteSessionData(); /* Ghoul2 Insert Start */ gi.Printf ("... Ghoul2 Models Shutdown\n"); for (int i=0; i<MAX_GENTITIES; i++) { gi.G2API_CleanGhoul2Models(g_entities[i].ghoul2); } /* Ghoul2 Insert End */ G_ASPreCacheFree(); }