From 5f6205802088189989b373d4bf5e0a8a200d1cbc Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 29 Dec 2020 16:48:28 +1100 Subject: [PATCH] - Duke: Don't block horz input while returning to center. * Player still returns to center after a fall or by looking/aiming up/down, but input breaks the return just like the other games. * Fixes #220. --- source/games/duke/src/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/input.cpp b/source/games/duke/src/input.cpp index 54bf48276..cd1c28702 100644 --- a/source/games/duke/src/input.cpp +++ b/source/games/duke/src/input.cpp @@ -825,7 +825,7 @@ static void FinalizeInput(int playerNum, InputPacket& input, bool vehicle) loc.avel = input.avel = 0; } - if (p->newOwner == nullptr && !(p->sync.actions & SB_CENTERVIEW)) + if (p->newOwner == nullptr) { // input.horz already added to loc in processMovement() loc.horz = clamp(loc.horz, -MAXHORIZVEL, MAXHORIZVEL);