From f2b706aa2ff0e02540eb8f2c186092fb72c3c10e Mon Sep 17 00:00:00 2001 From: Sryder Date: Sun, 10 Jan 2021 20:22:51 +0000 Subject: [PATCH] Initialise y-axis for the deadzone function --- src/g_game.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/g_game.c b/src/g_game.c index 7919ffad0..018d443ba 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -925,6 +925,7 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer) turnleft = PlayerInputDown(ssplayer, gc_turnleft); joystickvector.xaxis = PlayerJoyAxis(ssplayer, AXISTURN); + joystickvector.yaxis = 0; G_HandleAxisDeadZone(forplayer, &joystickvector); // For kart, I've turned the aim axis into a digital axis because we only