mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 13:21:10 +00:00
Potentially fix spectators floating when inputting right on the analog stick.
This commit is contained in:
parent
3a68af5f53
commit
aba7711c39
1 changed files with 1 additions and 0 deletions
|
@ -1380,6 +1380,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
||||||
|
|
||||||
if (player->spectator || objectplacing) // SRB2Kart: spectators need special controls
|
if (player->spectator || objectplacing) // SRB2Kart: spectators need special controls
|
||||||
{
|
{
|
||||||
|
axis = JoyAxis(AXISMOVE, ssplayer);
|
||||||
if (InputDown(gc_accelerate, ssplayer) || (usejoystick && axis > 0))
|
if (InputDown(gc_accelerate, ssplayer) || (usejoystick && axis > 0))
|
||||||
cmd->buttons |= BT_ACCELERATE;
|
cmd->buttons |= BT_ACCELERATE;
|
||||||
if (InputDown(gc_brake, ssplayer) || (usejoystick && axis > 0))
|
if (InputDown(gc_brake, ssplayer) || (usejoystick && axis > 0))
|
||||||
|
|
Loading…
Reference in a new issue