]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset player's alpha to default_player_alpha instead of 1 when exiting a vehicle...
authorMario <mario.mario@y7mail.com>
Thu, 23 Jan 2020 20:54:13 +0000 (06:54 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 23 Jan 2020 20:54:13 +0000 (06:54 +1000)
qcsrc/common/vehicles/sv_vehicles.qc

index 111c7e795629a5b373916fc30f7f034303b628e2..3ec02901dc14c06435cc35f4d5b738ad940f7add 100644 (file)
@@ -852,7 +852,7 @@ void vehicles_exit(entity vehic, bool eject)
                set_movetype(player, MOVETYPE_WALK);
                player.effects             &= ~EF_NODRAW;
                player.teleportable             = TELEPORT_NORMAL;
-               player.alpha                    = 1;
+               player.alpha                    = default_player_alpha;
                player.PlayerPhysplug   = func_null;
                player.vehicle                  = NULL;
                player.view_ofs                 = STAT(PL_VIEW_OFS, player);