fix unitialised use of controller stuff

This commit is contained in:
Alug committed 2025-01-02 16:54:54 +01:00
1 parent f017db6be0
commit 0c0f52c38c
1 file changed
+2
+2
View File
@@ -916,6 +916,8 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
// lmfao this is beyond hellish
if (player->spectator)
{
usejoystick = (analogjoystickmove || gamepadjoystickmove);
axis = JoyAxis(AXISMOVE, ssplayer);
if (InputDown(gc_accelerate, ssplayer) || (usejoystick && axis > 0))
cmd->buttons |= BT_ACCELERATE;