From 23d5a5771a149bb1b18b0ec4e33caa20c21bfdf0 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Fri, 20 Dec 2024 13:38:19 +0100 Subject: [PATCH] port: fix mouse X speed using wrong aspect in split screen --- src/game/bondmove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/bondmove.c b/src/game/bondmove.c index 23e774562..552dd0f83 100644 --- a/src/game/bondmove.c +++ b/src/game/bondmove.c @@ -2206,7 +2206,7 @@ void bmoveProcessInput(bool allowc1x, bool allowc1y, bool allowc1buttons, bool i // joystick is inactive, move crosshair using the mouse const f32 xcoeff = 320.f / 1080.f; const f32 ycoeff = 240.f / 1080.f; - const f32 xscale = (PLAYER_EXTCFG().mouseaimspeedx * xcoeff) / videoGetAspect(); + const f32 xscale = (PLAYER_EXTCFG().mouseaimspeedx * xcoeff) / g_Vars.currentplayer->aspect; const f32 yscale = PLAYER_EXTCFG().mouseaimspeedy * ycoeff; f32 x = g_Vars.currentplayer->swivelpos[0] + movedata.freelookdx * xscale; f32 y = g_Vars.currentplayer->swivelpos[1] + movedata.freelookdy * yscale;