]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix vehicle buff exploit
authorMario <mario@smbclan.net>
Mon, 2 Nov 2015 02:25:27 +0000 (12:25 +1000)
committerMario <mario@smbclan.net>
Mon, 2 Nov 2015 02:25:27 +0000 (12:25 +1000)
qcsrc/server/mutators/mutator/mutator_buffs.qc

index 6aacfedb4d2aae4a4870b0ae3bdf240f59096e3e..fd64e58626bd297487ac972f9465280f56f3dd34 100644 (file)
@@ -946,7 +946,7 @@ MUTATOR_HOOKFUNCTION(buffs, VehicleEnter)
 
 MUTATOR_HOOKFUNCTION(buffs, VehicleExit)
 {
-       vh_player.buffs = vh_vehicle.buffs;
+       vh_player.buffs = vh_player.oldbuffs = vh_vehicle.buffs;
        vh_vehicle.buffs = 0;
        vh_player.buff_time = time + vh_vehicle.buff_time;
        vh_vehicle.buff_time = 0;