hack for stick input display if you watch some other player Zzz....

This commit is contained in:
Alug committed 2025-03-21 15:53:10 +01:00
1 parent ded46e6197
commit caaf218dd4
1 file changed
+6 -5
+6 -5
View File
@@ -11062,7 +11062,12 @@ static void K_drawInput(void)
// during normal gameplay, so replicate shit here
INT32 hudforward = 0; // for the stick input display :chaosleep:
if (!demo.playback)
// this is horrid but we cant get actual input in replays so uhh
if (demo.playback || stplyr != &players[consoleplayer]) // yeah...........
{
hudforward = stplyr->kartstuff[k_throwdir] * KART_FULLTURN;
}
else
{
const boolean analogjoystickmove = cv_usejoystick[stplyrnum].value && !Joystick[stplyrnum].bGamepadStyle;
const boolean gamepadjoystickmove = cv_usejoystick[stplyrnum].value && Joystick[stplyrnum].bGamepadStyle;
@@ -11087,10 +11092,6 @@ static void K_drawInput(void)
}
}
}
else // this is horrid but we cant get actual input in replays so uhh
{
hudforward = stplyr->kartstuff[k_throwdir] * KART_FULLTURN;
}
hudforward = CLAMP(hudforward, -KART_FULLTURN, KART_FULLTURN);