mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-29 15:32:24 +00:00
Revert "- clamp player sprite's xvel between 0 and 512 to stop it going into the negative with rapid posx/posy changes due to teleporting."
This reverts commit cf548e055e
.
* Shouldn't be necessary now with doubles instead of integers for coordinates.
* Affected spot in commit message appears fine upon testing.
This commit is contained in:
parent
669a6e8ac0
commit
7dbd38c84a
2 changed files with 2 additions and 2 deletions
|
@ -1676,7 +1676,7 @@ void processinput_d(DDukePlayer* const p)
|
||||||
|
|
||||||
p->playerweaponsway(pact->vel.X);
|
p->playerweaponsway(pact->vel.X);
|
||||||
|
|
||||||
pact->vel.X = clamp((pact->spr.pos.XY() - p->bobpos).Length(), 0., 32.);
|
pact->vel.X = (pact->spr.pos.XY() - p->bobpos).Length();
|
||||||
if (p->on_ground) p->bobcounter += int(pact->vel.X * 8);
|
if (p->on_ground) p->bobcounter += int(pact->vel.X * 8);
|
||||||
|
|
||||||
p->backuppos(ud.clipping == 0 && ((p->insector() && p->cursector->floortexture == mirrortex) || !p->insector()));
|
p->backuppos(ud.clipping == 0 && ((p->insector() && p->cursector->floortexture == mirrortex) || !p->insector()));
|
||||||
|
|
|
@ -2498,7 +2498,7 @@ void processinput_r(DDukePlayer* const p)
|
||||||
|
|
||||||
p->playerweaponsway(pact->vel.X);
|
p->playerweaponsway(pact->vel.X);
|
||||||
|
|
||||||
pact->vel.X = clamp((pact->spr.pos.XY() - p->bobpos).Length(), 0., 32.);
|
pact->vel.X = (pact->spr.pos.XY() - p->bobpos).Length();
|
||||||
if (p->on_ground) p->bobcounter += int(pact->vel.X * 8);
|
if (p->on_ground) p->bobcounter += int(pact->vel.X * 8);
|
||||||
|
|
||||||
p->backuppos(ud.clipping == 0 && ((p->insector() && p->cursector->floortexture == mirrortex) || !p->insector()));
|
p->backuppos(ud.clipping == 0 && ((p->insector() && p->cursector->floortexture == mirrortex) || !p->insector()));
|
||||||
|
|
Loading…
Reference in a new issue