- repeat of cf548e055e for RR.

This commit is contained in:
Mitchell Richters 2020-08-09 16:41:42 +10:00
parent fb6a58904a
commit a3a7a8f6be

View file

@ -3641,8 +3641,7 @@ void processinput_r(int snum)
playerweaponsway(p, s);
s->xvel =
ksqrt((p->posx - p->bobposx) * (p->posx - p->bobposx) + (p->posy - p->bobposy) * (p->posy - p->bobposy));
s->xvel = clamp(ksqrt((p->posx - p->bobposx) * (p->posx - p->bobposx) + (p->posy - p->bobposy) * (p->posy - p->bobposy)), 0, 512);
if (p->on_ground) p->bobcounter += sprite[p->i].xvel >> 1;
backuppos(p, ud.clipping == 0 && (sector[p->cursectnum].floorpicnum == MIRROR || p->cursectnum < 0 || p->cursectnum >= MAXSECTORS));