From: Mario Date: Thu, 19 May 2016 21:47:37 +0000 (+1000) Subject: Clean self uses from some of the casings code X-Git-Tag: xonotic-v0.8.2~917 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7e9d45c6bec75a4ce1131cf110852ca9e53428fd;p=xonotic%2Fxonotic-data.pk3dir.git Clean self uses from some of the casings code --- 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;