From 5e7f44cc606a7d59d60865162dff5e20bf2c0aeb Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 14 Jan 2007 10:03:13 +0000 Subject: [PATCH] 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 --- sv_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2