From c86af08a1930ece0a1f053b7c2b4a6b236a7f4af Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 2 Oct 2020 19:47:32 +1000 Subject: [PATCH] - SW: Repair occasional locked player angle after player stops operating a sector object. --- source/sw/src/player.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index 39d272e58..7a768d971 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -5595,6 +5595,9 @@ DoPlayerStopOperate(PLAYERp pp) pp->q16ang = pp->oq16ang = IntToFixed(pp->remote_sprite->ang); else pp->q16ang = pp->oq16ang = gethiq16angle(pp->sop_remote->xmid - pp->posx, pp->sop_remote->ymid - pp->posy); + + if (!cl_syncinput) + pp->angTarget = 0; } if (pp->sop_control)