From 53038e1b2939378a879bd8448a176f95a0e90c2f Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 23 Sep 2020 15:00:33 +1000 Subject: [PATCH] - Duke: Don't allow looking left/right when on a security camera screen. --- source/games/duke/src/input.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index 9dd2d17c7..7fdc94a8c 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -972,6 +972,12 @@ static void FinalizeInput(int playerNum, InputPacket& input, bool vehicle) loc.q16horz = input.q16horz = 0; } } + + // Remove look left/right bits if looking through a camera. + if (p->newowner != -1) + { + loc.actions &= ~(SB_LOOK_LEFT | SB_LOOK_RIGHT); + } } //---------------------------------------------------------------------------