]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix jetpack sound continuing when entering vehicle
authorMario <mario@smbclan.net>
Wed, 8 Feb 2017 17:36:16 +0000 (03:36 +1000)
committerMario <mario@smbclan.net>
Wed, 8 Feb 2017 17:36:16 +0000 (03:36 +1000)
qcsrc/common/vehicles/sv_vehicles.qc

index e8ab69a30bf38b1e50807b2636ed8b065c7a0a5f..82e1abf9f16bfa941eb97500f2a6587d1e3bcb01 100644 (file)
@@ -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;