From 176dc6e5ca2251fb1d21761a9c46ee155ffa0511 Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 17 Nov 2018 18:02:04 +0000 Subject: [PATCH] Fix the first digit of all exiting players in positions 10 or worse flashing the first-place rainbow. --- src/k_kart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index 5d7b13f8..642c8e6f 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -6456,6 +6456,7 @@ static void K_DrawKartPositionNum(INT32 num) // POSI_X = BASEVIDWIDTH - 51; // 269 // POSI_Y = BASEVIDHEIGHT- 64; // 136 + boolean win = (stplyr->exiting && num == 1); INT32 X = POSI_X; INT32 W = SHORT(kp_positionnum[0][0]->width); fixed_t scale = FRACUNIT; @@ -6481,7 +6482,7 @@ static void K_DrawKartPositionNum(INT32 num) // Draw the number 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]; else if (stplyr->laps+1 >= cv_numlaps.value || stplyr->exiting) // Check for the final lap, or won {