From e7ff1d693b39516f5e3f6237152d8a507e548bcf Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 24 Feb 2024 15:38:32 +0100 Subject: [PATCH] fix K_GetScreenCoords y clipping --- src/k_kart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index d1edeb8c1..884a64086 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -9011,8 +9011,8 @@ static void K_GetScreenCoords(vector2_t *vec, player_t *player, camera_t *came, x = FixedMul(x, FINECOSINE((yang>>ANGLETOFINESHIFT) & FINEMASK)); // perspective y = -camaiming - FixedDiv(yang, distfact); - //if ((fixed_t)y < ANGLE_270 || (fixed_t)y > ANGLE_90) // clip points behind the camera - // return; + if (y < (fixed_t)ANGLE_270 || y > (fixed_t)ANGLE_90) // clip points behind the camera + return; if (splitscreen == 1) // multiply by 1.25 for 2P splitscreen y = y + (y/4) ; if (srcflip) // flipcam