Make position number scale vary

- Before: always x2
- With "normal screen" (1P, 3P, 4P):   x1.75
- With "wide splitscreen" (2P): x2.5
This commit is contained in:
Sally Coolatta 2022-11-17 23:48:06 -05:00
parent 651b75e802
commit d0a3e4704d

View file

@ -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