From 76b41f5a3b0d7a1426c6f56da40a414980bb7bd2 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sat, 6 Jun 2020 16:14:39 -0400 Subject: [PATCH] Remove capping --- src/k_kart.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index a0d79efc2..65cf8af15 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -9732,6 +9732,7 @@ static void K_drawKartPlayerCheck(void) { player_t *checkplayer = &players[i]; fixed_t distance = maxdistance+1; + UINT8 *colormap = NULL; UINT8 pnum = 0; fixed_t x = 0; vertex_t v; @@ -9782,21 +9783,8 @@ static void K_drawKartPlayerCheck(void) K_ObjectTracking(&x, NULL, &c, thiscam->angle + ANGLE_180, 0, cnum, &v); - if (x <= 320*FRACUNIT && x >= 0) - { - UINT8 *colormap = R_GetTranslationColormap(TC_DEFAULT, checkplayer->mo->color, GTC_CACHE); - - if (x < 14*FRACUNIT) - { - x = 14*FRACUNIT; - } - else if (x > 306*FRACUNIT) - { - x = 306*FRACUNIT; - } - - V_DrawFixedPatch(x, CHEK_Y * FRACUNIT, FRACUNIT, V_HUDTRANS|splitflags, kp_check[pnum], colormap); - } + colormap = R_GetTranslationColormap(TC_DEFAULT, checkplayer->mo->color, GTC_CACHE); + V_DrawFixedPatch(x, CHEK_Y * FRACUNIT, FRACUNIT, V_HUDTRANS|splitflags, kp_check[pnum], colormap); } }