sw/src/track.cpp:MovePlayer: Missed this in preceding interpolation fixes

This commit is contained in:
NY00123 2020-04-15 14:45:19 +03:00 committed by Christoph Oelckers
parent 1d1aa4581b
commit fd6df8e509

View file

@ -1663,14 +1663,13 @@ MovePlayer(PLAYERp pp, SECTOR_OBJECTp sop, int nx, int ny)
pp->posx += BOUND_4PIX(nx);
pp->posy += BOUND_4PIX(ny);
if (!InterpolateSectObj)
{
pp->oposx = pp->posx;
pp->oposy = pp->posy;
}
if (TEST(sop->flags, SOBJ_DONT_ROTATE))
{
if (!InterpolateSectObj)
{
pp->oposx = pp->posx;
pp->oposy = pp->posy;
}
UpdatePlayerSprite(pp);
return;
}
@ -1713,9 +1712,13 @@ MovePlayer(PLAYERp pp, SECTOR_OBJECTp sop, int nx, int ny)
// New angle is formed by taking last known angle and
// adjusting by the delta angle
pp->q16ang = fix16_from_int(NORM_ANGLE(pp->RevolveAng + pp->RevolveDeltaAng));
if (!InterpolateSectObj)
pp->oq16ang = pp->q16ang;
if (!InterpolateSectObj)
{
pp->oq16ang = pp->q16ang;
pp->oposx = pp->posx;
pp->oposy = pp->posy;
}
UpdatePlayerSprite(pp);
}