From: havoc Date: Wed, 4 May 2005 09:55:13 +0000 (+0000) Subject: forgot to add 1 to radius byte in parsing TE_CUSTOMFLASH, probably not noticable... X-Git-Tag: xonotic-v0.1.0preview~4958 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=c17e81d93a33fa1f6799dd8cb027ca8dad78ada5;p=xonotic%2Fdarkplaces.git forgot to add 1 to radius byte in parsing TE_CUSTOMFLASH, probably not noticable though git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5221 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index e600f7cb..ecbe8f2b 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -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);