]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/throwing.qc
Merge branch 'master' into TimePath/global_self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / throwing.qc
index 25f4649140c2aa15a6e7f0af40baaee2b2c31783..2fb19609eaf71685cc33a15d7d9ca700fb870cc2 100644 (file)
@@ -74,8 +74,7 @@ string W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vecto
                }
        }
 
-       SELFCALL(wep, weapon_defaultspawnfunc(wpn));
-       SELFCALL_DONE();
+       WITH(entity, self, wep, weapon_defaultspawnfunc(wpn));
        if(startitem_failed)
                return string_null;
        wep.glowmod = own.weaponentity_glowmod;