From 047a842ac93c3cc213f69563497343186b84183b Mon Sep 17 00:00:00 2001 From: div0 Date: Fri, 5 Sep 2008 19:06:05 +0000 Subject: [PATCH] properly refuse to portal projectiles owned by others too git-svn-id: svn://svn.icculus.org/nexuiz/trunk@4363 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/portals.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/qcsrc/server/portals.qc b/data/qcsrc/server/portals.qc index 01de7803f..300b19ec5 100644 --- a/data/qcsrc/server/portals.qc +++ b/data/qcsrc/server/portals.qc @@ -199,6 +199,10 @@ void Portal_Touch() 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; -- 2.39.2