]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
init.bsp: Properly shutdown the mapinfo subsystem.
authorRudolf Polzer <divverent@xonotic.org>
Fri, 27 Nov 2015 20:46:26 +0000 (21:46 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 27 Nov 2015 20:46:26 +0000 (21:46 +0100)
qcsrc/server/g_world.qc

index 1af638cf4e50f8ed43d70a9c469e6621a29da49d..20abf4da390cbb07a32d74837e2be7f19e208d41 100644 (file)
@@ -551,6 +551,10 @@ spawnfunc(__init_dedicated_server)
        MapInfo_FilterGametype(MapInfo_CurrentGametype(), MapInfo_CurrentFeatures(), MapInfo_RequiredFlags(), MapInfo_ForbiddenFlags(), 0);
 }
 
+void __init_dedicated_server_shutdown() {
+       MapInfo_Shutdown();
+}
+
 void Map_MarkAsRecent(string m);
 float world_already_spawned;
 void Nagger_Init();
@@ -2161,4 +2165,8 @@ void Shutdown()
        {
                LOG_INFO("NOTE: crashed before even initializing the world, not saving persistent data\n");
        }
+       else
+       {
+               __init_dedicated_server_shutdown();
+       }
 }