projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d50766
)
Fix buff timer when exiting vehicle
author
Mario <mario@smbclan.net>
Sat, 16 Jan 2016 10:40:08 +0000
(20:40 +1000)
committer
Mario <mario@smbclan.net>
Sat, 16 Jan 2016 10:40:08 +0000
(20:40 +1000)
qcsrc/common/mutators/mutator/buffs/buffs.qc
patch
|
blob
|
history
diff --git
a/qcsrc/common/mutators/mutator/buffs/buffs.qc
b/qcsrc/common/mutators/mutator/buffs/buffs.qc
index 0b3f4eedb0e6a81a4cfc9fdd450c73b6ff5eada6..111490669b2f0bc233e5f61a7b073e2a97c65422 100644
(file)
--- 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;
}