From: bones_was_here Date: Fri, 11 Sep 2020 10:57:25 +0000 (+1000) Subject: q3compat: Fix some nexuiz maps that rely on adjacent bboxes counting as touching X-Git-Tag: xonotic-v0.8.5~352^2~30 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9f91a4082527d6debbdc1b6045106126777a7f65;p=xonotic%2Fxonotic-data.pk3dir.git q3compat: Fix some nexuiz maps that rely on adjacent bboxes counting as touching --- diff --git a/qcsrc/lib/warpzone/common.qc b/qcsrc/lib/warpzone/common.qc index 830c56de6..34c7bb2ba 100644 --- a/qcsrc/lib/warpzone/common.qc +++ b/qcsrc/lib/warpzone/common.qc @@ -787,10 +787,13 @@ entity WarpZone_RefSys_SpawnSameRefSys(entity me) bool WarpZoneLib_ExactTrigger_Touch(entity this, entity toucher) { vector emin = toucher.absmin, emax = toucher.absmax; - // the engine offsets absolute bounding boxes by a single quake unit - // we must undo that here to allow accurate touching - emin += '1 1 1'; - emax -= '1 1 1'; + if(STAT(Q3COMPAT)) + { + // DP's tracebox enlarges absolute bounding boxes by a single quake unit + // we must undo that here to allow accurate touching + emin += '1 1 1'; + emax -= '1 1 1'; + } return !WarpZoneLib_BoxTouchesBrush(emin, emax, this, toucher); }