]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
forgot to add 1 to radius byte in parsing TE_CUSTOMFLASH, probably not noticable...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 May 2005 09:55:13 +0000 (09:55 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 May 2005 09:55:13 +0000 (09:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5221 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index e600f7cbc3417128fdb8f5f49aeb76095ec5fdda..ecbe8f2bf621ffc593e3a692c5bfe82522418e17 100644 (file)
@@ -1205,7 +1205,7 @@ void CL_ParseTempEntity(void)
        case TE_CUSTOMFLASH:
                MSG_ReadVector(pos, cl.protocol);
                CL_FindNonSolidLocation(pos, pos, 4);
-               radius = MSG_ReadByte() * 8;
+               radius = (MSG_ReadByte() + 1) * 8;
                velspeed = (MSG_ReadByte() + 1) * (1.0 / 256.0);
                color[0] = MSG_ReadByte() * (2.0f / 255.0f);
                color[1] = MSG_ReadByte() * (2.0f / 255.0f);