Potentially fix spectators floating when inputting right on the analog stick.

This commit is contained in:
wolfy852 2018-12-02 02:01:06 -06:00
parent 3a68af5f53
commit aba7711c39

View file

@ -1380,6 +1380,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
if (player->spectator || objectplacing) // SRB2Kart: spectators need special controls
{
axis = JoyAxis(AXISMOVE, ssplayer);
if (InputDown(gc_accelerate, ssplayer) || (usejoystick && axis > 0))
cmd->buttons |= BT_ACCELERATE;
if (InputDown(gc_brake, ssplayer) || (usejoystick && axis > 0))