From: Mario Date: Sat, 16 Jan 2016 10:40:08 +0000 (+1000) Subject: Fix buff timer when exiting vehicle X-Git-Tag: xonotic-v0.8.2~1228 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=316d236810eb3f6dfdc85450b89dd96f8ce2b316;p=xonotic%2Fxonotic-data.pk3dir.git Fix buff timer when exiting vehicle --- diff --git a/qcsrc/common/mutators/mutator/buffs/buffs.qc b/qcsrc/common/mutators/mutator/buffs/buffs.qc index 0b3f4eedb..111490669 100644 --- a/qcsrc/common/mutators/mutator/buffs/buffs.qc +++ b/qcsrc/common/mutators/mutator/buffs/buffs.qc @@ -1019,7 +1019,7 @@ MUTATOR_HOOKFUNCTION(buffs, VehicleEnter) { vh_vehicle.buffs = vh_player.buffs; vh_player.buffs = 0; - vh_vehicle.buff_time = max(0, time - vh_player.buff_time); + vh_vehicle.buff_time = max(0, vh_player.buff_time - time); vh_player.buff_time = 0; return false; }