From: Mario Date: Mon, 2 Nov 2015 02:25:27 +0000 (+1000) Subject: Fix vehicle buff exploit X-Git-Tag: xonotic-v0.8.2~1740 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=33eb4519d8d4372760b44e3896ee65649e971808;p=xonotic%2Fxonotic-data.pk3dir.git Fix vehicle buff exploit --- diff --git a/qcsrc/server/mutators/mutator/mutator_buffs.qc b/qcsrc/server/mutators/mutator/mutator_buffs.qc index 6aacfedb4..fd64e5862 100644 --- a/qcsrc/server/mutators/mutator/mutator_buffs.qc +++ b/qcsrc/server/mutators/mutator/mutator_buffs.qc @@ -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;