From 3a1e6a791155fc3fedf80f7be54309e53363b2d3 Mon Sep 17 00:00:00 2001 From: Reki Date: Wed, 14 Apr 2021 23:58:02 -0400 Subject: [PATCH] Fixed bug with SSQC entity collision in CSQC --- cl_collision.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cl_collision.c b/cl_collision.c index 68e47b62..58026c68 100644 --- a/cl_collision.c +++ b/cl_collision.c @@ -306,7 +306,7 @@ trace_t CL_TracePoint(const vec3_t start, int type, prvm_edict_t *passedict, int vec3_t origin, entmins, entmaxs; matrix4x4_t entmatrix, entinversematrix; - for (i = cl.maxclients;i < cl.num_entities;i++) + for (i = cl.maxclients + 1;i < cl.num_entities;i++) { entity_render_t *ent = &cl.entities[i].render; entity_state_t *ent_fields = &cl.entities[i].state_current; @@ -568,7 +568,7 @@ trace_t CL_TraceLine(const vec3_t start, const vec3_t end, int type, prvm_edict_ vec3_t origin, entmins, entmaxs; matrix4x4_t entmatrix, entinversematrix; - for (i = cl.maxclients;i < cl.num_entities;i++) + for (i = cl.maxclients + 1;i < cl.num_entities;i++) { entity_render_t *ent = &cl.entities[i].render; entity_state_t *ent_fields = &cl.entities[i].state_current; @@ -854,7 +854,7 @@ trace_t CL_TraceBox(const vec3_t start, const vec3_t mins, const vec3_t maxs, co vec3_t origin, entmins, entmaxs; matrix4x4_t entmatrix, entinversematrix; - for (i = cl.maxclients;i < cl.num_entities;i++) + for (i = cl.maxclients + 1;i < cl.num_entities;i++) { entity_render_t *ent = &cl.entities[i].render; entity_state_t *ent_fields = &cl.entities[i].state_current; -- 2.39.2