[nexuiz-commits] r8717 - trunk/data/qcsrc/warpzonelib

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Feb 28 14:45:07 EST 2010


Author: div0
Date: 2010-02-28 14:45:04 -0500 (Sun, 28 Feb 2010)
New Revision: 8717

Modified:
   trunk/data/qcsrc/warpzonelib/common.qc
Log:
ignore refsys in findradius

Modified: trunk/data/qcsrc/warpzonelib/common.qc
===================================================================
--- trunk/data/qcsrc/warpzonelib/common.qc	2010-02-28 19:44:48 UTC (rev 8716)
+++ trunk/data/qcsrc/warpzonelib/common.qc	2010-02-28 19:45:04 UTC (rev 8717)
@@ -418,11 +418,14 @@
 			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 @@
 			{
 				e.warpzone_transform = transform;
 				e.warpzone_shift = shift;
-
 				e.WarpZone_findradius_hit = 1;
 			}
 		}



More information about the nexuiz-commits mailing list