- Exhumed: Ensure ox/oy/oz sprite positions are set when warping to coordinates.

This commit is contained in:
Mitchell Richters 2021-01-30 11:22:46 +11:00
parent e7ab4cd176
commit e66960d9fc

View file

@ -39,9 +39,9 @@ void GameInterface::WarpToCoords(int x, int y, int z, int ang, int horz)
Player *nPlayer = &PlayerList[nLocalPlayer];
spritetype *pSprite = &sprite[nPlayer->nSprite];
pSprite->x = x;
pSprite->y = y;
pSprite->z = z;
pSprite->ox = pSprite->x = x;
pSprite->oy = pSprite->y = y;
pSprite->oz = pSprite->z = z;
if (ang != INT_MIN)
{