]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
the beginnings of a cgGL rendering path experiment, does not work yet
[xonotic/darkplaces.git] / sv_user.c
index b545b8b9d8489073929092532ca563d987f2af9d..2ca62d7eab7bcc2a756061857379acab984981a3 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -553,8 +553,8 @@ void SV_ReadClientMove (void)
                        if(host_client->movement_highestsequence_seen)
                        {
                                // mark moves in between as lost
-                               if(move->sequence - host_client->movement_highestsequence_seen < NETGRAPH_PACKETS)
-                                       for(i = host_client->movement_highestsequence_seen; i < move->sequence; ++i)
+                               if(move->sequence - host_client->movement_highestsequence_seen - 1 < NETGRAPH_PACKETS)
+                                       for(i = host_client->movement_highestsequence_seen + 1; i < move->sequence; ++i)
                                                host_client->movement_count[i % NETGRAPH_PACKETS] = -1;
                                else
                                        memset(host_client->movement_count, -1, sizeof(host_client->movement_count));