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
This commit is contained in:
terminx 2020-02-08 05:09:03 +00:00 committed by Christoph Oelckers
parent ce2c378dcb
commit bcb561014d

View file

@ -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