]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_cmds.c
fixed a stupid bug in PF_te_customflash that made it send lifetime as /256 (should...
[xonotic/darkplaces.git] / 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
-       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));