From: havoc Date: Wed, 4 May 2005 10:26:36 +0000 (+0000) Subject: fixed a stupid bug in PF_te_customflash that made it send lifetime as /256 (should... X-Git-Tag: xonotic-v0.1.0preview~4957 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=91ac963ce4a8c71a16a143ced2a86decca1267bf fixed a stupid bug in PF_te_customflash that made it send lifetime as /256 (should've been *256) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5222 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/pr_cmds.c b/pr_cmds.c index 0ef9ba71..096cf4b5 100644 --- 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));