]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svvm_cmds.c
added sv_areadebug cvar which disables the use of the areagrid (VERY bad
[xonotic/darkplaces.git] / svvm_cmds.c
index c0ed230ae2e0a0c5883b1b0f292add128ea6cd91..246ff1d1e1b70756bdf59c3136049958fafefa41 100644 (file)
@@ -994,7 +994,7 @@ static void VM_SV_findradius (void)
        maxs[0] = org[0] + (radius + 1);
        maxs[1] = org[1] + (radius + 1);
        maxs[2] = org[2] + (radius + 1);
-       numtouchedicts = World_EntitiesInBox(&sv.world, mins, maxs, MAX_EDICTS, touchedicts);
+       numtouchedicts = SV_EntitiesInBox(mins, maxs, MAX_EDICTS, touchedicts);
        if (numtouchedicts > MAX_EDICTS)
        {
                // this never happens