mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- fix remaining interpolation issue with weapon swaying when taking off again from a stand-still.
This commit is contained in:
parent
6fd6926d8d
commit
abb23a7bd0
1 changed files with 9 additions and 1 deletions
|
@ -2741,7 +2741,15 @@ void processinput_d(int snum)
|
|||
p->weapon_sway += 96;
|
||||
else p->oweapon_sway = p->weapon_sway = 1024;
|
||||
}
|
||||
else p->weapon_sway = p->bobcounter;
|
||||
else
|
||||
{
|
||||
p->weapon_sway = p->bobcounter;
|
||||
|
||||
if ((p->bobcounter - p->oweapon_sway) > 256)
|
||||
{
|
||||
p->oweapon_sway = p->weapon_sway;
|
||||
}
|
||||
}
|
||||
|
||||
s->xvel =
|
||||
ksqrt((p->posx - p->bobposx) * (p->posx - p->bobposx) + (p->posy - p->bobposy) * (p->posy - p->bobposy));
|
||||
|
|
Loading…
Reference in a new issue