]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
Removed globaldefindex_progid field from cvar struct.
[xonotic/darkplaces.git] / cl_parse.c
index 2828515f9da56c7f5ab0b9dd547b035c72fabd48..923e48e734ad8471ead538b2f1f6783e19fc8f30 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:
@@ -2887,6 +2893,8 @@ static void CL_ParseTempEntity(void)
                        CL_FindNonSolidLocation(pos, pos, 10);
                        colorStart = MSG_ReadByte(&cl_message);
                        colorLength = MSG_ReadByte(&cl_message);
+                       if (colorLength == 0)
+                               colorLength = 1;
                        CL_ParticleExplosion2(pos, colorStart, colorLength);
                        tempcolor = palette_rgb[(rand()%colorLength) + colorStart];
                        color[0] = tempcolor[0] * (2.0f / 255.0f);