mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Remove capping
This commit is contained in:
parent
dc1ae10cd8
commit
76b41f5a3b
1 changed files with 3 additions and 15 deletions
18
src/k_kart.c
18
src/k_kart.c
|
|
@ -9732,6 +9732,7 @@ static void K_drawKartPlayerCheck(void)
|
||||||
{
|
{
|
||||||
player_t *checkplayer = &players[i];
|
player_t *checkplayer = &players[i];
|
||||||
fixed_t distance = maxdistance+1;
|
fixed_t distance = maxdistance+1;
|
||||||
|
UINT8 *colormap = NULL;
|
||||||
UINT8 pnum = 0;
|
UINT8 pnum = 0;
|
||||||
fixed_t x = 0;
|
fixed_t x = 0;
|
||||||
vertex_t v;
|
vertex_t v;
|
||||||
|
|
@ -9782,21 +9783,8 @@ static void K_drawKartPlayerCheck(void)
|
||||||
|
|
||||||
K_ObjectTracking(&x, NULL, &c, thiscam->angle + ANGLE_180, 0, cnum, &v);
|
K_ObjectTracking(&x, NULL, &c, thiscam->angle + ANGLE_180, 0, cnum, &v);
|
||||||
|
|
||||||
if (x <= 320*FRACUNIT && x >= 0)
|
colormap = R_GetTranslationColormap(TC_DEFAULT, checkplayer->mo->color, GTC_CACHE);
|
||||||
{
|
V_DrawFixedPatch(x, CHEK_Y * FRACUNIT, FRACUNIT, V_HUDTRANS|splitflags, kp_check[pnum], colormap);
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue