Fix player 2 using player 1 accelerate and brake controls

This commit is contained in:
Sryder 2017-03-07 23:23:35 +00:00
parent d6fef7ff29
commit c224929345

View file

@ -1399,12 +1399,12 @@ void G_BuildTiccmd2(ticcmd_t *cmd, INT32 realtics)
*/
// forward with key or button
if (PLAYER1INPUTDOWN(gc_accelerate))
if (PLAYER2INPUTDOWN(gc_accelerate))
{
cmd->buttons |= BT_ACCELERATE;
forward = forwardmove[speed];
}
if (PLAYER1INPUTDOWN(gc_brake))
if (PLAYER2INPUTDOWN(gc_brake))
{
cmd->buttons |= BT_BRAKE;
forward -= forwardmove[speed];