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);
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)
{