fix unitialised use of controller stuff

This commit is contained in:
Alug committed 2025-01-03 19:43:10 +01:00
1 parent 7de32c74e6
commit 45237c9298
1 file changed
+2
+2
View File
@@ -918,6 +918,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;