From d0a3e4704de3f4488d3b889397c309cc2a26dab6 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Thu, 17 Nov 2022 23:48:06 -0500 Subject: [PATCH] Make position number scale vary - Before: always x2 - With "normal screen" (1P, 3P, 4P): x1.75 - With "wide splitscreen" (2P): x2.5 --- src/k_hud.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/k_hud.c b/src/k_hud.c index 25f38dc72..b4f868491 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -1617,8 +1617,9 @@ static void K_DrawKartPositionNum(INT32 num) if (stplyr->positiondelay || stplyr->exiting) { - UINT8 delay = (stplyr->exiting) ? POS_DELAY_TIME : stplyr->positiondelay; - scale += min((scale * (delay * delay)) / (POS_DELAY_TIME * POS_DELAY_TIME), scale); + const UINT8 delay = (stplyr->exiting) ? POS_DELAY_TIME : stplyr->positiondelay; + const fixed_t add = (scale * 3) >> ((r_splitscreen == 1) ? 1 : 2); + scale += min((add * (delay * delay)) / (POS_DELAY_TIME * POS_DELAY_TIME), add); } // pain and suffering defined below