mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-10 15:30:36 +00:00
- repeat of cf548e055e
for RR.
This commit is contained in:
parent
fb6a58904a
commit
a3a7a8f6be
1 changed files with 1 additions and 2 deletions
|
@ -3641,8 +3641,7 @@ void processinput_r(int snum)
|
||||||
|
|
||||||
playerweaponsway(p, s);
|
playerweaponsway(p, s);
|
||||||
|
|
||||||
s->xvel =
|
s->xvel = clamp(ksqrt((p->posx - p->bobposx) * (p->posx - p->bobposx) + (p->posy - p->bobposy) * (p->posy - p->bobposy)), 0, 512);
|
||||||
ksqrt((p->posx - p->bobposx) * (p->posx - p->bobposx) + (p->posy - p->bobposy) * (p->posy - p->bobposy));
|
|
||||||
if (p->on_ground) p->bobcounter += sprite[p->i].xvel >> 1;
|
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));
|
backuppos(p, ud.clipping == 0 && (sector[p->cursectnum].floorpicnum == MIRROR || p->cursectnum < 0 || p->cursectnum >= MAXSECTORS));
|
||||||
|
|
Loading…
Reference in a new issue