From a0befdce2d8e9f3214d3dc442ae2b5e8bc40301b Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Wed, 29 Jul 2020 05:43:40 -0400 Subject: [PATCH] Fix drawing on others screens --- src/k_hud.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k_hud.c b/src/k_hud.c index af65103f2..b2b8a56c6 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -2262,7 +2262,7 @@ static void K_ObjectTracking(fixed_t *hud_x, fixed_t *hud_y, vertex_t *campos, a { *hud_x = FixedMul(NEWTAN(anglediff), swhalffixed) + swhalffixed; - if (*hud_x < -BASEVIDWIDTH * FRACUNIT || *hud_x > BASEVIDWIDTH * FRACUNIT) + if (*hud_x < 0 || *hud_x > BASEVIDWIDTH * FRACUNIT) { *hud_x = -1000 * FRACUNIT; } @@ -2287,7 +2287,7 @@ static void K_ObjectTracking(fixed_t *hud_x, fixed_t *hud_y, vertex_t *campos, a *hud_y = (*hud_y * swhalf) + shhalffixed; *hud_y = *hud_y + NEWTAN(camaim) * swhalf; - if (*hud_y < -BASEVIDHEIGHT * FRACUNIT || *hud_y > BASEVIDHEIGHT * FRACUNIT) + if (*hud_y < 0 || *hud_y > BASEVIDHEIGHT * FRACUNIT) { *hud_y = -1000 * FRACUNIT; }