From be0cbeed65b71a930c095b88c38276ed6b4b9959 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 23 Jul 2020 13:34:47 +1000 Subject: [PATCH] - ensure p->lookRight is reset to false in start `checklook()` like lookLeft is. Repairs issue where player never returned to centre when they pressed the look right key. --- source/games/duke/src/player.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/games/duke/src/player.cpp b/source/games/duke/src/player.cpp index c5365570c..e739b1331 100644 --- a/source/games/duke/src/player.cpp +++ b/source/games/duke/src/player.cpp @@ -822,6 +822,7 @@ void checklook(int snum, int sb_snum) auto p = &ps[snum]; p->lookLeft = false; + p->lookRight = false; if ((sb_snum & SKB_LOOK_LEFT) && !p->OnMotorcycle) { SetGameVarID(g_iReturnVarID, 0, p->i, snum);