Don't turn strafe keys into turn when locked onto something

This commit is contained in:
fickleheart 2019-12-12 22:13:44 -06:00
parent a188cd5db8
commit 4941ef4aac

View file

@ -1081,7 +1081,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
abilitydirection = cv_abilitydirection[forplayer].value;
strafeisturn = abilitydirection && ticcmd_centerviewdown[forplayer] &&
(cv_cam_lockedinput[forplayer].value || (player->pflags & PF_STARTDASH)) &&
((cv_cam_lockedinput[forplayer].value && !ticcmd_ztargetfocus[forplayer]) || (player->pflags & PF_STARTDASH)) &&
!player->climbing && player->powers[pw_carry] != CR_MINECART;
// why build a ticcmd if we're paused?