From: havoc Date: Sun, 14 Jan 2007 10:03:13 +0000 (+0000) Subject: cast time of received moves to float to prevent negative ping estimates when timer... X-Git-Tag: xonotic-v0.1.0preview~3713 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=5e7f44cc606a7d59d60865162dff5e20bf2c0aeb cast time of received moves to float to prevent negative ping estimates when timer is degraded severely git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6691 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_user.c b/sv_user.c index 3d2e78c5..eeb7f10f 100644 --- a/sv_user.c +++ b/sv_user.c @@ -460,7 +460,7 @@ qboolean SV_ReadClientMove (void) move->sequence = MSG_ReadLong (); move->time = MSG_ReadFloat (); if (msg_badread) Con_Printf("SV_ReadClientMessage: badread at %s:%i\n", __FILE__, __LINE__); - move->receivetime = sv.time; + move->receivetime = (float)sv.time; // calculate average ping time host_client->ping = move->receivetime - move->time;