- SW: Fix clipmove call within DoPlayerMoveVehicle().

* Originating from 05ad1e38e9.
* Fixes #829.
This commit is contained in:
Mitchell Richters 2022-12-29 20:32:58 +11:00
parent d7030961d9
commit 318bba469f

View file

@ -2784,7 +2784,9 @@ void DoPlayerMoveVehicle(PLAYER* pp)
if (pp->sop->clipdist) if (pp->sop->clipdist)
{ {
Collision coll; Collision coll;
clipmove(pp->pos, &pp->cursector, pp->vect, pp->sop->clipdist, 4., floordist, CLIPMASK_PLAYER, actor->user.coll); auto temppos = DVector3(pp->pos.XY(), zz);
clipmove(temppos, &pp->cursector, pp->vect, pp->sop->clipdist, 4., floordist, CLIPMASK_PLAYER, actor->user.coll);
pp->pos.XY() = temppos.XY();
} }
else else
{ {