From 7026c527e7a23f2c01766b21f6e572d4930dacc8 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 3 Jan 2014 14:59:43 +0100 Subject: [PATCH] Fixes. --- sv_phys.c | 1 - world.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sv_phys.c b/sv_phys.c index 37d63575..dd8cd984 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -751,7 +751,6 @@ int SV_EntitiesInBox(const vec3_t mins, const vec3_t maxs, int maxedicts, prvm_e int SV_EntitiesInBoxNearLine(const vec3_t mins, const vec3_t maxs, const vec3_t start, const vec3_t end, vec_t distance, int maxedicts, prvm_edict_t **resultedicts) { - prvm_prog_t *prog = SVVM_prog; vec3_t paddedmins, paddedmaxs; if (sv_areadebug.integer) return SV_EntitiesInBox(mins, maxs, maxedicts, resultedicts); diff --git a/world.c b/world.c index 376fc997..41d14897 100644 --- a/world.c +++ b/world.c @@ -366,7 +366,7 @@ int World_EntitiesInBoxNearLine(world_t *world, const vec3_t requestmins, const maxs[1] = mins[1] + 1.0 / world->areagrid_scale[1]; //maxs[2] = mins[2] + 1.0 / world->areagrid_scale[2]; maxs[2] = world->areagrid_maxs[2]; - if (IsNearLine(mins, maxs, requeststart, requestend, requestdistance)) + if (!IsNearLine(mins, maxs, requeststart, requestend, requestdistance)) continue; for (l = grid->next;l != grid;l = l->next) { -- 2.39.2