From 7e9d45c6bec75a4ce1131cf110852ca9e53428fd Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 20 May 2016 07:47:37 +1000 Subject: [PATCH] Clean self uses from some of the casings code --- qcsrc/common/effects/qc/casings.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/effects/qc/casings.qc b/qcsrc/common/effects/qc/casings.qc index ab217110b..0e01e01e0 100644 --- a/qcsrc/common/effects/qc/casings.qc +++ b/qcsrc/common/effects/qc/casings.qc @@ -15,10 +15,10 @@ REGISTER_NET_TEMP(casings) #ifdef SVQC void SpawnCasing(vector vel, float randomvel, vector ang, vector avel, float randomavel, int casingtype, entity casingowner) -{SELFPARAM(); +{ .entity weaponentity = weaponentities[0]; // TODO: parameter - entity wep = self.(weaponentity); - vector org = self.origin + self.view_ofs + wep.spawnorigin.x * v_forward - wep.spawnorigin.y * v_right + wep.spawnorigin.z * v_up; + entity wep = casingowner.(weaponentity); + vector org = casingowner.origin + casingowner.view_ofs + wep.spawnorigin.x * v_forward - wep.spawnorigin.y * v_right + wep.spawnorigin.z * v_up; if (!sound_allowed(MSG_BROADCAST, casingowner)) casingtype |= 0x80; -- 2.39.2