mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Merge branch 'positionnum_fix' into 'master'
Position Num Fix See merge request KartKrew/Kart!94
This commit is contained in:
commit
bc33cb78a6
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue