20 #include "common/x86/fpu.h"
47 frame =
cls.
netchan->incoming_acknowledged & CMD_MASK;
54 len = abs(delta[0]) + abs(delta[1]) + abs(delta[2]);
55 if (len < 1 || len > 640) {
61 SHOWMISS(
"prediction miss on %i: %i (%d %d %d)\n",
91 if (ent->
current.solid == PACKED_BSP) {
96 headnode = cmodel->headnode;
105 mins, maxs, headnode, MASK_PLAYERSOLID,
118 static trace_t q_gameabi
CL_Trace(vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end)
124 if (t.fraction < 1.0)
145 if (ent->
current.solid != PACKED_BSP)
153 point, cmodel->headnode,
177 unsigned ack, current, frame;
203 if (current - ack > CMD_BACKUP - 1) {
208 if (!
cl.
cmd.msec && current == ack) {
217 memset(&
pm, 0,
sizeof(
pm));
222 #if USE_SMOOTH_DELTA_ANGLES
223 VectorCopy(
cl.delta_angles,
pm.s.delta_angles);
227 while (++ack <= current) {
252 if (
pm.s.pm_type != PM_SPECTATOR && (
pm.s.pm_flags & PMF_ON_GROUND)) {
254 step =
pm.s.origin[2] - oldz;
255 if (step > 63 && step < 160) {