From: Mario Date: Wed, 8 Feb 2017 17:36:16 +0000 (+1000) Subject: Fix jetpack sound continuing when entering vehicle X-Git-Tag: xonotic-v0.8.2~237 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=514256825ee2f7471234151b2d2bb594c265d0b5;p=xonotic%2Fxonotic-data.pk3dir.git Fix jetpack sound continuing when entering vehicle --- diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index e8ab69a30..82e1abf9f 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -970,6 +970,7 @@ void vehicles_enter(entity pl, entity veh) veh.event_damage = vehicles_damage; veh.nextthink = 0; + pl.items &= ~IT_USING_JETPACK; pl.angles = veh.angles; pl.takedamage = DAMAGE_NO; pl.solid = SOLID_NOT;