sw/src/track.cpp:MovePlayer: We also need to update pp->camq16ang here.

Note that this angle is currently not interpolated,
as done for the sector.
This commit is contained in:
NY00123 2020-04-15 18:42:15 +03:00 committed by Christoph Oelckers
parent fd6df8e509
commit 0c4deb9298
1 changed files with 2 additions and 0 deletions

View File

@ -1711,6 +1711,8 @@ 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->camq16ang += fix16_from_int(NORM_ANGLE(pp->RevolveAng + pp->RevolveDeltaAng)) - pp->q16ang;
pp->camq16ang = NORM_Q16ANGLE(pp->camq16ang);
pp->q16ang = fix16_from_int(NORM_ANGLE(pp->RevolveAng + pp->RevolveDeltaAng));
if (!InterpolateSectObj)