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:
Mitchell Richters 2023-11-08 16:45:21 +11:00
parent 669a6e8ac0
commit 7dbd38c84a
2 changed files with 2 additions and 2 deletions

View file

@ -1676,7 +1676,7 @@ void processinput_d(DDukePlayer* const p)
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);
p->backuppos(ud.clipping == 0 && ((p->insector() && p->cursector->floortexture == mirrortex) || !p->insector()));

View file

@ -2498,7 +2498,7 @@ void processinput_r(DDukePlayer* const p)
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);
p->backuppos(ud.clipping == 0 && ((p->insector() && p->cursector->floortexture == mirrortex) || !p->insector()));