]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_collision.c
Fix GCC 12 warns: comparison will always evaluate as true
[xonotic/darkplaces.git] / cl_collision.c
index 97303e7a92a9775678e2b5b5c7eefaaeba384cb2..ad6e560080465835819e577095bbf67b4a54f45e 100644 (file)
@@ -978,7 +978,7 @@ trace_t CL_Cache_TraceLineSurfaces(const vec3_t start, const vec3_t end, int typ
                if (!model)
                        continue;
                // animated models are not suitable for caching
-               if ((&touch->priv.server->frameblend[0] && (touch->priv.server->frameblend[0].lerp != 1.0 || touch->priv.server->frameblend[0].subframe != 0)) || touch->priv.server->skeleton.relativetransforms)
+               if ((touch->priv.server->frameblend[0].lerp != 1.0 || touch->priv.server->frameblend[0].subframe != 0) || touch->priv.server->skeleton.relativetransforms)
                        continue;
                if (type == MOVE_NOMONSTERS && PRVM_clientedictfloat(touch, solid) != SOLID_BSP)
                        continue;