mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +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