]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
Don't crash on too-many-water-planes.
[xonotic/darkplaces.git] / cl_parse.c
index 2828515f9da56c7f5ab0b9dd547b035c72fabd48..26a0ed1120a4891854fdf6a8fcb68a80bd32adef 100644 (file)
@@ -586,6 +586,12 @@ static void QW_CL_RequestNextDownload(void)
        // clear name of file that just finished
        cls.qw_downloadname[0] = 0;
 
+       // skip the download fragment if playing a demo
+       if (!cls.netcon)
+       {
+               return;
+       }
+
        switch (cls.qw_downloadtype)
        {
        case dl_single: