From 8bae057bae1922be04cebfabb2293141b53a47fc Mon Sep 17 00:00:00 2001 From: div0 Date: Sun, 28 Feb 2010 19:45:04 +0000 Subject: [PATCH] ignore refsys in findradius git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8717 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/warpzonelib/common.qc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/data/qcsrc/warpzonelib/common.qc b/data/qcsrc/warpzonelib/common.qc index 5186830c3..af9405df2 100644 --- a/data/qcsrc/warpzonelib/common.qc +++ b/data/qcsrc/warpzonelib/common.qc @@ -418,11 +418,14 @@ void WarpZone_FindRadius_Recurse(vector org, float rad, vector org0, e.WarpZone_findradius_dist = org0 - p; e.WarpZone_findradius_findorigin = org; e.WarpZone_findradius_findradius = rad; - if(e.classname == "trigger_warpzone") + if(e.classname == "warpzone_refsys") + { + // ignore, especially: do not overwrite the refsys parameters + } + else if(e.classname == "trigger_warpzone") { e.WarpZone_findradius_next = wz; wz = e; - e.WarpZone_findradius_hit = 1; e.enemy.WarpZone_findradius_dist = '0 0 0'; // we don't want to go through this zone ever again e.enemy.WarpZone_findradius_hit = 1; @@ -431,7 +434,6 @@ void WarpZone_FindRadius_Recurse(vector org, float rad, vector org0, { e.warpzone_transform = transform; e.warpzone_shift = shift; - e.WarpZone_findradius_hit = 1; } } -- 2.39.2