]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix buff timer when exiting vehicle
authorMario <mario@smbclan.net>
Sat, 16 Jan 2016 10:40:08 +0000 (20:40 +1000)
committerMario <mario@smbclan.net>
Sat, 16 Jan 2016 10:40:08 +0000 (20:40 +1000)
qcsrc/common/mutators/mutator/buffs/buffs.qc

index 0b3f4eedb0e6a81a4cfc9fdd450c73b6ff5eada6..111490669b2f0bc233e5f61a7b073e2a97c65422 100644 (file)
@@ -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;
 }