]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clean self uses from some of the casings code
authorMario <mario@smbclan.net>
Thu, 19 May 2016 21:47:37 +0000 (07:47 +1000)
committerMario <mario@smbclan.net>
Thu, 19 May 2016 21:47:37 +0000 (07:47 +1000)
qcsrc/common/effects/qc/casings.qc

index ab217110b08a96352ea01185e63be7e38ff08134..0e01e01e0ed9db193be1b1cf0c24135f831482fd 100644 (file)
@@ -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;