From bcb561014d6ec5d26fb343affadafbf93023020f Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 8 Feb 2020 05:09:03 +0000 Subject: [PATCH] Fix hilarious bug where holding the strafe modifier and pressing turn left/right moved the player in the wrong direction git-svn-id: https://svn.eduke32.com/eduke32@8617 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/duke3d/src/player.cpp b/source/duke3d/src/player.cpp index 496630034..726ac84c5 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -2982,10 +2982,10 @@ void P_GetInput(int const playerNum) if (!localInput.svel) { if (buttonMap.ButtonDown(gamefunc_Turn_Left) && !(pPlayer->movement_lock & 4) && !localInput.svel) - input.svel = -keyMove; + input.svel = keyMove; if (buttonMap.ButtonDown(gamefunc_Turn_Right) && !(pPlayer->movement_lock & 8) && !localInput.svel) - input.svel = keyMove; + input.svel = -keyMove; } } else