From: TimePath Date: Sat, 5 Sep 2015 02:10:53 +0000 (+1000) Subject: Update uses of self X-Git-Tag: xonotic-v0.8.2~1931^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=df8a2bd2d26f416dba3b1b074cf84c09e3758b01;p=xonotic%2Fxonotic-data.pk3dir.git Update uses of self --- diff --git a/qcsrc/server/mutators/mutator_instagib.qc b/qcsrc/server/mutators/mutator_instagib.qc index 9aecd0e4e..1e2afb352 100644 --- a/qcsrc/server/mutators/mutator_instagib.qc +++ b/qcsrc/server/mutators/mutator_instagib.qc @@ -15,7 +15,7 @@ void spawnfunc_item_minst_cells() } void instagib_invisibility() -{ +{SELFPARAM(); self.strength_finished = autocvar_g_balance_powerup_strength_time; StartItemA(ITEM_Invisibility); } @@ -27,7 +27,7 @@ void instagib_extralife() } void instagib_speed() -{ +{SELFPARAM(); self.invincible_finished = autocvar_g_balance_powerup_invincible_time; StartItemA(ITEM_Speed); } diff --git a/qcsrc/server/mutators/mutator_physical_items.qc b/qcsrc/server/mutators/mutator_physical_items.qc index d02158ffc..0fc96a134 100644 --- a/qcsrc/server/mutators/mutator_physical_items.qc +++ b/qcsrc/server/mutators/mutator_physical_items.qc @@ -100,9 +100,7 @@ MUTATOR_HOOKFUNCTION(item_spawning) setorigin(wep, wep.origin + '0 0 1'); entity oldself; oldself = self; - self = wep; - builtin_droptofloor(); - self = oldself; + WITH(entity, self, wep, builtin_droptofloor()); } wep.spawn_origin = wep.origin; diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 671f1d0ed..df03b4538 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -76,7 +76,7 @@ void ItemDrawSimple() } void Item_PreDraw() -{ +{SELFPARAM(); vector org; float alph; org = getpropertyvec(VF_ORIGIN);