]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
fix reflections not working when just reflective stuff, but no water, is on the map
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index 521114be674f64d4b9ef7b9de0969e93201f9215..7888bffd8d57babefadea2d6cf56d3baf6bdbd7e 100644 (file)
--- a/host.c
+++ b/host.c
@@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "cl_video.h"
 #include "progsvm.h"
 #include "csprogs.h"
+#include "sv_demo.h"
 
 /*
 
@@ -373,6 +374,8 @@ void SV_DropClient(qboolean crash)
        int i;
        Con_Printf("Client \"%s\" dropped\n", host_client->name);
 
+       SV_StopDemoRecording(host_client);
+
        // make sure edict is not corrupt (from a level change for example)
        host_client->edict = PRVM_EDICT_NUM(host_client - svs.clients + 1);