]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cl_netlocalping now adds only half as much lag, so that the number specified is rough...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 5 May 2005 12:49:17 +0000 (12:49 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 5 May 2005 12:49:17 +0000 (12:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5226 d7cf8633-e32d-0410-b094-e92efae38249

lhnet.c

diff --git a/lhnet.c b/lhnet.c
index 8c9c845562355afcd9700d09b0ff12dc77d69510..f7de35abfa8bcda4d931eafc268319b46eda0d67 100644 (file)
--- a/lhnet.c
+++ b/lhnet.c
@@ -568,7 +568,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength,
                                continue;
                        }
 #ifndef STANDALONETEST
-                       if (cl_netlocalping.value && (Sys_DoubleTime() - cl_netlocalping.value * (1.0 / 1000.0)) < p->sentdoubletime)
+                       if (cl_netlocalping.value && (Sys_DoubleTime() - cl_netlocalping.value * (1.0 / 2000.0)) < p->sentdoubletime)
                                continue;
 #endif
                        if (value == 0 && p->destinationport == lhnetsocket->address.addressdata.loop.port)