From 0c4deb929867fc0a760777d832a1e96c7fb4cad4 Mon Sep 17 00:00:00 2001 From: NY00123 Date: Wed, 15 Apr 2020 18:42:15 +0300 Subject: [PATCH] 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. --- source/sw/src/track.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/sw/src/track.cpp b/source/sw/src/track.cpp index 7a9233c3d..216c627a0 100644 --- a/source/sw/src/track.cpp +++ b/source/sw/src/track.cpp @@ -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)