]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
new entity protocol, GREATLY improved over quake, massive net traffic reduction
[xonotic/darkplaces.git] / sv_user.c
index 3f306413eb6326bfc7b1e76844b420866803c38a..1fc07731ced69ea27b87da15c09a5daab60348fb 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -76,7 +76,7 @@ void SV_SetIdealPitch (void)
                bottom[0] = top[0];
                bottom[1] = top[1];
                bottom[2] = top[2] - 160;
-               
+
                tr = SV_Move (top, vec3_origin, vec3_origin, bottom, MOVE_NOMONSTERS, sv_player);
                if (tr.allsolid)
                        return; // looking at a wall, leave ideal the way is was
@@ -232,7 +232,7 @@ void DropPunchAngle (void)
        eval_t  *val;
        
        len = VectorNormalizeLength (sv_player->v.punchangle);
-       
+
        len -= 10*sv.frametime;
        if (len < 0)
                len = 0;
@@ -607,6 +607,10 @@ nextmsg:
                        case clc_move:
                                SV_ReadClientMove (&host_client->cmd);
                                break;
+
+                       case clc_ackentities:
+                               EntityFrame_AckFrame(&host_client->entitydatabase, MSG_ReadLong());
+                               break;
                        }
                }
        } while (ret == 1);