mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix chunky gap between Kart position numbers
There's still a big gap but that's a graphics lump size issue, code wouldn't solve it
This commit is contained in:
parent
1999cf0509
commit
b1adc3d27c
1 changed files with 8 additions and 3 deletions
11
src/k_hud.c
11
src/k_hud.c
|
|
@ -1574,8 +1574,8 @@ static fixed_t K_DrawKartPositionNumPatch(UINT8 num, UINT8 *color, fixed_t x, fi
|
||||||
overlayFlags[1] = V_SUBTRACT;
|
overlayFlags[1] = V_SUBTRACT;
|
||||||
}
|
}
|
||||||
|
|
||||||
w = kp_positionnum[num][0][splitIndex]->width * scale;
|
w = SHORT(kp_positionnum[num][0][splitIndex]->width) * scale;
|
||||||
h = kp_positionnum[num][0][splitIndex]->height * scale;
|
h = SHORT(kp_positionnum[num][0][splitIndex]->height) * scale;
|
||||||
|
|
||||||
if (flags & V_SNAPTORIGHT)
|
if (flags & V_SNAPTORIGHT)
|
||||||
{
|
{
|
||||||
|
|
@ -1597,7 +1597,12 @@ static fixed_t K_DrawKartPositionNumPatch(UINT8 num, UINT8 *color, fixed_t x, fi
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (x - w);
|
if (!(flags & V_SNAPTORIGHT))
|
||||||
|
{
|
||||||
|
x -= w;
|
||||||
|
}
|
||||||
|
|
||||||
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void K_DrawKartPositionNum(INT32 num)
|
static void K_DrawKartPositionNum(INT32 num)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue