- SW: Fix two bad calls to pushmove() where a fixed point adjustment was used.

* Came in from 3ac4e7ed2d.
* Fixes #816.
This commit is contained in:
Mitchell Richters 2022-12-29 18:53:46 +11:00
parent dcd0e62466
commit c240c8e6ee

View file

@ -2090,7 +2090,7 @@ void DoPlayerMove(PLAYER* pp)
} }
else else
{ {
push_ret = pushmove(pp->actor->spr.pos.XY(), pp->actor->getOffsetZ(), &pp->cursector, actor->clipdist, pp->p_ceiling_dist, pp->p_floor_dist - Z(16), CLIPMASK_PLAYER); push_ret = pushmove(pp->actor->spr.pos.XY(), pp->actor->getOffsetZ(), &pp->cursector, actor->clipdist, pp->p_ceiling_dist, pp->p_floor_dist - 16., CLIPMASK_PLAYER);
if (push_ret < 0) if (push_ret < 0)
{ {
@ -2118,7 +2118,7 @@ void DoPlayerMove(PLAYER* pp)
actor->spr.cstat = save_cstat; actor->spr.cstat = save_cstat;
PlayerCheckValidMove(pp); PlayerCheckValidMove(pp);
push_ret = pushmove(pp->actor->spr.pos.XY(), pp->actor->getOffsetZ(), &pp->cursector, actor->clipdist, pp->p_ceiling_dist, pp->p_floor_dist - Z(16), CLIPMASK_PLAYER); push_ret = pushmove(pp->actor->spr.pos.XY(), pp->actor->getOffsetZ(), &pp->cursector, actor->clipdist, pp->p_ceiling_dist, pp->p_floor_dist - 16., CLIPMASK_PLAYER);
if (push_ret < 0) if (push_ret < 0)
{ {