From: Rudolf Polzer Date: Fri, 27 Nov 2015 20:46:26 +0000 (+0100) Subject: init.bsp: Properly shutdown the mapinfo subsystem. X-Git-Tag: xonotic-v0.8.2~1613 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e34bf8062b101ab4eb9e9128b5926118e4ed570f;p=xonotic%2Fxonotic-data.pk3dir.git init.bsp: Properly shutdown the mapinfo subsystem. --- diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 1af638cf4..20abf4da3 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -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(); + } }