Merge branch 'positionnum_fix' into 'master'

Position Num Fix

See merge request KartKrew/Kart!94
This commit is contained in:
Sal 2018-11-17 16:24:14 -05:00
commit bc33cb78a6

View file

@ -6456,6 +6456,7 @@ static void K_DrawKartPositionNum(INT32 num)
// POSI_X = BASEVIDWIDTH - 51; // 269 // POSI_X = BASEVIDWIDTH - 51; // 269
// POSI_Y = BASEVIDHEIGHT- 64; // 136 // POSI_Y = BASEVIDHEIGHT- 64; // 136
boolean win = (stplyr->exiting && num == 1);
INT32 X = POSI_X; INT32 X = POSI_X;
INT32 W = SHORT(kp_positionnum[0][0]->width); INT32 W = SHORT(kp_positionnum[0][0]->width);
fixed_t scale = FRACUNIT; fixed_t scale = FRACUNIT;
@ -6481,7 +6482,7 @@ static void K_DrawKartPositionNum(INT32 num)
// Draw the number // Draw the number
while (num) while (num)
{ {
if (stplyr->exiting && num == 1) // 1st place winner? You get rainbows!! if (win) // 1st place winner? You get rainbows!!
localpatch = kp_winnernum[(leveltime % (NUMWINFRAMES*3)) / 3]; localpatch = kp_winnernum[(leveltime % (NUMWINFRAMES*3)) / 3];
else if (stplyr->laps+1 >= cv_numlaps.value || stplyr->exiting) // Check for the final lap, or won else if (stplyr->laps+1 >= cv_numlaps.value || stplyr->exiting) // Check for the final lap, or won
{ {