From f8650a17a0f5b6d31dbb462457378a2e96477d64 Mon Sep 17 00:00:00 2001 From: Hanicef Date: Sun, 28 Apr 2024 16:21:48 +0200 Subject: [PATCH] Fix aim in splitscreen --- src/hardware/hw_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 0771708eb..376639878 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -5222,6 +5222,8 @@ static void HWR_SetTransformAiming(FTransform *trans, player_t *player, boolean { fixed_t fixedaiming = AIMINGTODY(aimingangle); trans->viewaiming = FIXED_TO_FLOAT(fixedaiming) * ((float)vid.width / vid.height) / ((float)BASEVIDWIDTH / BASEVIDHEIGHT); + if (splitscreen) + trans->viewaiming *= 2.125; // splitscreen adjusts fov with 0.8, so compensate (but only halfway, since splitscreen means only half the screen is used) trans->shearing = true; gl_aimingangle = 0; }