]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed a stupid bug in PF_te_customflash that made it send lifetime as /256 (should...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 May 2005 10:26:36 +0000 (10:26 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 4 May 2005 10:26:36 +0000 (10:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5222 d7cf8633-e32d-0410-b094-e92efae38249

pr_cmds.c

index 0ef9ba718433801c4fe1e5884db218922fb91834..096cf4b50ce58dd1fe9bb23fbe42a308e454a7ec 100644 (file)
--- a/pr_cmds.c
+++ b/pr_cmds.c
@@ -2417,7 +2417,7 @@ void PF_te_customflash (void)
        // radius
        MSG_WriteByte(&sv.datagram, bound(0, G_FLOAT(OFS_PARM1) / 8 - 1, 255));
        // lifetime
        // radius
        MSG_WriteByte(&sv.datagram, bound(0, G_FLOAT(OFS_PARM1) / 8 - 1, 255));
        // lifetime
-       MSG_WriteByte(&sv.datagram, bound(0, G_FLOAT(OFS_PARM2) / 256 - 1, 255));
+       MSG_WriteByte(&sv.datagram, bound(0, G_FLOAT(OFS_PARM2) * 256 - 1, 255));
        // color
        MSG_WriteByte(&sv.datagram, bound(0, G_VECTOR(OFS_PARM3)[0] * 255, 255));
        MSG_WriteByte(&sv.datagram, bound(0, G_VECTOR(OFS_PARM3)[1] * 255, 255));
        // color
        MSG_WriteByte(&sv.datagram, bound(0, G_VECTOR(OFS_PARM3)[0] * 255, 255));
        MSG_WriteByte(&sv.datagram, bound(0, G_VECTOR(OFS_PARM3)[1] * 255, 255));