From: TimePath Date: Mon, 14 Mar 2016 04:33:37 +0000 (+1100) Subject: warpzones: revert FindRadius fast path X-Git-Tag: xonotic-v0.8.2~1092 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2aab0cbac26247269b8a581f4e4c99b3a965eb5b;p=xonotic%2Fxonotic-data.pk3dir.git warpzones: revert FindRadius fast path Closes #1683 --- diff --git a/qcsrc/lib/warpzone/common.qc b/qcsrc/lib/warpzone/common.qc index 99332dba6..e5cd1515a 100644 --- a/qcsrc/lib/warpzone/common.qc +++ b/qcsrc/lib/warpzone/common.qc @@ -658,7 +658,8 @@ void WarpZone_FindRadius_Recurse( } entity WarpZone_FindRadius(vector org, float rad, bool needlineofsight) { - if (!warpzone_warpzones_exist && !needlineofsight) return findradius(org, rad); + // FIXME: why can't we do this? (sometimes finds nothing, breaking explosions) + // if (!warpzone_warpzones_exist && !needlineofsight) return findradius(org, rad); WarpZone_FindRadius_Recurse(org, rad, org, '0 0 0', '0 0 0', needlineofsight); entity list_first = findchainfloat(WarpZone_findradius_hit, 1); FOREACH_LIST(list, chain, true, it.WarpZone_findradius_hit = 0);