r4363 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Sep 5 15:06:05 EDT 2008


Author: div0
Date: 2008-09-05 15:06:05 -0400 (Fri, 05 Sep 2008)
New Revision: 4363

Modified:
   trunk/data/qcsrc/server/portals.qc
Log:
properly refuse to portal projectiles owned by others too


Modified: trunk/data/qcsrc/server/portals.qc
===================================================================
--- trunk/data/qcsrc/server/portals.qc	2008-09-05 18:39:39 UTC (rev 4362)
+++ trunk/data/qcsrc/server/portals.qc	2008-09-05 19:06:05 UTC (rev 4363)
@@ -199,6 +199,10 @@
 		if(other.classname == "player")
 			if(IS_INDEPENDENT_PLAYER(other) || IS_INDEPENDENT_PLAYER(self.owner))
 				return; // cannot go through someone else's portal
+	if(other.owner != self.owner)
+		if(other.owner.classname == "player")
+			if(IS_INDEPENDENT_PLAYER(other.owner) || IS_INDEPENDENT_PLAYER(self.owner))
+				return; // cannot go through someone else's portal
 	fixedmakevectors(self.angles);
 	if((other.origin - self.origin) * v_forward < 0)
 		return;




More information about the nexuiz-commits mailing list