mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
K_drawKartFreePlay: Fix alignment for good
Uses V_StringScaledWidth instead of manually inserted spacing
This commit is contained in:
parent
1058d210d1
commit
d6c86b97b6
1 changed files with 11 additions and 1 deletions
12
src/k_hud.c
12
src/k_hud.c
|
|
@ -4919,8 +4919,18 @@ void K_drawKartFreePlay(void)
|
|||
if (((leveltime-lt_endtime) % TICRATE) < TICRATE/2)
|
||||
return;
|
||||
|
||||
const fixed_t x = ((BASEVIDWIDTH - (LAPS_X+6)) * FRACUNIT) - \
|
||||
V_StringScaledWidth(
|
||||
FRACUNIT,
|
||||
FRACUNIT,
|
||||
FRACUNIT,
|
||||
V_HUDTRANS|V_SLIDEIN|V_SNAPTOBOTTOM|V_SNAPTORIGHT|V_SPLITSCREEN,
|
||||
KART_FONT,
|
||||
"FREE PLAY"
|
||||
);
|
||||
|
||||
V_DrawStringScaled(
|
||||
((BASEVIDWIDTH - (LAPS_X+1)) - 72) * FRACUNIT, // mirror the laps thingy
|
||||
x,
|
||||
(LAPS_Y+3) * FRACUNIT,
|
||||
FRACUNIT,
|
||||
FRACUNIT,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue