]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
added set (create/set a cvar) and seta (create/set a saved cvar) commands, now config...
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index b1ed19b011dbe26d408ea27d1d0d3229965e3c8e..5cd787a9078d0911d229c8015b868a5beda0ee5d 100644 (file)
--- a/host.c
+++ b/host.c
@@ -455,8 +455,12 @@ void SV_DropClient(qboolean crash)
        NetConn_Heartbeat(1);
 
        // free the client now
+       if (host_client->entitydatabase)
+               EntityFrame_FreeDatabase(host_client->entitydatabase);
        if (host_client->entitydatabase4)
                EntityFrame4_FreeDatabase(host_client->entitydatabase4);
+       if (host_client->entitydatabase5)
+               EntityFrame5_FreeDatabase(host_client->entitydatabase5);
        // clear the client struct (this sets active to false)
        memset(host_client, 0, sizeof(*host_client));
 }
@@ -864,6 +868,7 @@ void Host_Init (void)
        if (cls.state != ca_dedicated)
        {
                Palette_Init();
+               MR_Init_Commands();
                VID_Shared_Init();
                VID_Init();