From: Mario Date: Fri, 12 Jun 2020 11:18:31 +0000 (+1000) Subject: Reference the correct local entity when checking for the player's vehicle, fixes... X-Git-Tag: xonotic-v0.8.5~920 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d12946552ac747e0565d867f2d979b6c32153640;p=xonotic%2Fxonotic-data.pk3dir.git Reference the correct local entity when checking for the player's vehicle, fixes compile --- diff --git a/qcsrc/common/mutators/mutator/instagib/sv_instagib.qc b/qcsrc/common/mutators/mutator/instagib/sv_instagib.qc index 0bcea9885..f4ff4d34a 100644 --- a/qcsrc/common/mutators/mutator/instagib/sv_instagib.qc +++ b/qcsrc/common/mutators/mutator/instagib/sv_instagib.qc @@ -235,7 +235,7 @@ MUTATOR_HOOKFUNCTION(mutator_instagib, PlayerPowerups) play_countdown(player, STAT(STRENGTH_FINISHED, player), SND_POWEROFF); if (time > STAT(STRENGTH_FINISHED, player)) { - if(!this.vehicle) // already reset upon exit + if(!player.vehicle) // already reset upon exit { player.alpha = default_player_alpha; player.exteriorweaponentity.alpha = default_weapon_alpha; @@ -248,7 +248,7 @@ MUTATOR_HOOKFUNCTION(mutator_instagib, PlayerPowerups) { if (time < STAT(STRENGTH_FINISHED, player)) { - if(!this.vehicle) // incase the player is given powerups while inside a vehicle + if(!player.vehicle) // incase the player is given powerups while inside a vehicle { player.alpha = autocvar_g_instagib_invis_alpha; player.exteriorweaponentity.alpha = autocvar_g_instagib_invis_alpha;