From 25c40f37868290bbd64320a2791bf05cde8f054b Mon Sep 17 00:00:00 2001 From: div0 Date: Tue, 22 Jan 2008 12:56:00 +0000 Subject: [PATCH] handle self/oself CORRECTLY this time git-svn-id: svn://svn.icculus.org/nexuiz/trunk@3220 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/mode_onslaught.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/server/mode_onslaught.qc b/data/qcsrc/server/mode_onslaught.qc index 6f99f539a..b2bf382bb 100644 --- a/data/qcsrc/server/mode_onslaught.qc +++ b/data/qcsrc/server/mode_onslaught.qc @@ -353,6 +353,7 @@ void(entity inflictor, entity attacker, float damage, float deathtype, vector hi onslaught_updatelinks(); // Use targets now (somebody make sure this is in the right place..) + oself = self; self = self.owner; activator = self.owner; SUB_UseTargets (); @@ -379,7 +380,6 @@ void() onslaught_controlpoint_icon_think = void() onslaught_controlpoint_icon_buildthink = { local entity oself; - oself = self; self.nextthink = time + 0.1; self.health = self.health + self.count; @@ -394,6 +394,7 @@ void() onslaught_controlpoint_icon_buildthink = onslaught_updatelinks(); // Use targets now (somebody make sure this is in the right place..) + oself = self; self = self.owner; activator = self; SUB_UseTargets (); -- 2.39.2