- Blood: Fix gi->WarpToCoords() that messed up the Z.

This commit is contained in:
Mitchell Richters 2022-11-24 08:56:31 +11:00 committed by Christoph Oelckers
parent e991116abf
commit 597b291252

View file

@ -35,8 +35,8 @@ void GameInterface::WarpToCoords(double x, double y, double z, DAngle ang)
{ {
PLAYER* pPlayer = &gPlayer[myconnectindex]; PLAYER* pPlayer = &gPlayer[myconnectindex];
pPlayer->actor->opos.XY() = pPlayer->actor->spr.pos.XY() = { x , y }; pPlayer->actor->spr.pos = { x, y, z };
pPlayer->ozView = pPlayer->zView = z; playerResetInertia(pPlayer);
if (ang != DAngle::fromDeg(INT_MIN)) if (ang != DAngle::fromDeg(INT_MIN))
{ {