mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fixed bullet tracer speed
This commit is contained in:
parent
d351ced78b
commit
b852980842
1 changed files with 5 additions and 1 deletions
|
@ -2455,8 +2455,12 @@ float BulletAttack(
|
|||
if (tracerspeed == 1.f) {
|
||||
gi.MSG_WriteBits(0, 1);
|
||||
} else {
|
||||
int speed;
|
||||
|
||||
speed = tracerspeed * (1 << 9);
|
||||
|
||||
gi.MSG_WriteBits(1, 1);
|
||||
gi.MSG_WriteBits(Q_clamp(tracerspeed, 1, 1023), 10);
|
||||
gi.MSG_WriteBits(Q_clamp(speed, 1, 1023), 10);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue