]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
added a few more CHECKGLERROR lines, and the possibility of not having
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index cb1c91d21ce779b9d03c6bf783cf1373187128ec..1f2ccaa4f49469dae384673bb29b3a662daf0ff2 100644 (file)
--- a/host.c
+++ b/host.c
@@ -536,6 +536,7 @@ void Host_ShutdownServer(void)
 
 // make sure all the clients know we're disconnecting
        SV_VM_Begin();
+       World_End(&sv.world);
        if(prog->loaded)
                if(prog->funcoffsets.SV_Shutdown)
                {
@@ -934,6 +935,9 @@ void Host_Main(void)
 
 #if MEMPARANOIA
                Mem_CheckSentinelsGlobal();
+#else
+               if (developer_memorydebug.integer)
+                       Mem_CheckSentinelsGlobal();
 #endif
 
                // if there is some time remaining from this frame, reset the timers