mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
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:
parent
38319d01b2
commit
0bb562f93f
7 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue