Fix a bunch of float vs int bugs

Just those made me glad I tried compiling with clang: running into those
bugs would have lead to some serious headaches, I imagine.
This commit is contained in:
Bill Currie 2022-03-31 00:28:26 +09:00
parent 38319d01b2
commit 0bb562f93f
7 changed files with 7 additions and 7 deletions

View file

@ -240,7 +240,7 @@ CL_LinkPacketEntities (void)
vec4f_t delta = new->origin - old->origin;
f = frac;
// If the delta is large, assume a teleport and don't lerp
if (fabs (delta[0]) > 100 || fabs (delta[1] > 100)
if (fabs (delta[0]) > 100 || fabs (delta[1]) > 100
|| fabs (delta[2]) > 100) {
// assume a teleportation, not a motion
CL_TransformEntity (ent, new->scale / 16, new->angles,