]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reference the correct local entity when checking for the player's vehicle, fixes...
authorMario <mario.mario@y7mail.com>
Fri, 12 Jun 2020 11:18:31 +0000 (21:18 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 12 Jun 2020 11:18:58 +0000 (21:18 +1000)
qcsrc/common/mutators/mutator/instagib/sv_instagib.qc

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