Fix tailsbot flying weird with P1=standard P2=simple controls

This commit is contained in:
fickleheart 2019-12-30 11:07:29 -06:00
parent f4e7227e11
commit ebbe5938a8

View file

@ -1181,7 +1181,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
mly = &mlook2y;
G_CopyTiccmd(cmd, I_BaseTiccmd2(), 1); // empty, or external driver
}
abilitydirection = cv_abilitydirection[forplayer].value;
abilitydirection = cv_abilitydirection[player->bot ? 0 : forplayer].value;
strafeisturn = abilitydirection && ticcmd_centerviewdown[forplayer] &&
((cv_cam_lockedinput[forplayer].value && !ticcmd_ztargetfocus[forplayer]) || (player->pflags & PF_STARTDASH)) &&
@ -1608,6 +1608,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
{
G_CopyTiccmd(cmd, I_BaseTiccmd2(), 1); // empty, or external driver
B_BuildTiccmd(player, cmd);
}
}