From 1ba1ffc2ed124f779bad0877a9176c5b30a9aef7 Mon Sep 17 00:00:00 2001 From: tma Date: Sun, 25 Oct 2009 21:54:45 +0000 Subject: * Make [sv|cl]_packetdelay work when timescale is not 1 (arQon) git-svn-id: svn://svn.icculus.org/quake3/trunk@1705 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/net_chan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code') diff --git a/code/qcommon/net_chan.c b/code/qcommon/net_chan.c index 8869c01..5b359f9 100644 --- a/code/qcommon/net_chan.c +++ b/code/qcommon/net_chan.c @@ -550,7 +550,7 @@ static void NET_QueuePacket( int length, const void *data, netadr_t to, Com_Memcpy(new->data, data, length); new->length = length; new->to = to; - new->release = Sys_Milliseconds() + offset; + new->release = Sys_Milliseconds() + (int)((float)offset / com_timescale->value); new->next = NULL; if(!packetQueue) { -- cgit v1.2.3