diff --git a/src/dehacked.c b/src/dehacked.c index 7722d777b..5189af4bb 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -1070,13 +1070,6 @@ static void readlevelheader(MYFILE *f, INT32 num, INT32 wadnum) else mapheaderinfo[num-1]->levelflags &= ~LF_SECTIONRACE; } - else if (fastcmp(word, "SUBTRACTNUM")) - { - if (i || word2[0] == 'T' || word2[0] == 'Y') - mapheaderinfo[num-1]->levelflags |= LF_SUBTRACTNUM; - else - mapheaderinfo[num-1]->levelflags &= ~LF_SUBTRACTNUM; - } // Individual triggers for menu flags else if (fastcmp(word, "HIDDEN")) @@ -7847,7 +7840,6 @@ struct { {"LF_NORELOAD",LF_NORELOAD}, {"LF_NOZONE",LF_NOZONE}, {"LF_SECTIONRACE",LF_SECTIONRACE}, - {"LF_SUBTRACTNUM",LF_SUBTRACTNUM}, // And map flags {"LF2_HIDEINMENU",LF2_HIDEINMENU}, {"LF2_HIDEINSTATS",LF2_HIDEINSTATS}, diff --git a/src/k_kart.c b/src/k_kart.c index 6336bb26b..0d7777ef9 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -8786,7 +8786,6 @@ static void K_DrawKartPositionNum(INT32 num) INT32 W = SHORT(kp_positionnum[0][0]->width); fixed_t scale = FRACUNIT; patch_t *localpatch = kp_positionnum[0][0]; - INT32 addOrSub = B_ADD; //INT32 splitflags = K_calcSplitFlags(V_SNAPTOBOTTOM|V_SNAPTORIGHT); INT32 fx = 0, fy = 0, fflags = 0; INT32 xoffs = wheeloffs ? -48 : 0; @@ -8794,11 +8793,6 @@ static void K_DrawKartPositionNum(INT32 num) boolean flipvdraw = false; // used only for 2p splitscreen so overtaking doesn't make 1P's position fly off the screen. boolean overtake = false; - if ((mapheaderinfo[gamemap - 1]->levelflags & LF_SUBTRACTNUM) == LF_SUBTRACTNUM) - { - addOrSub = B_SUBTRACT; - } - if ((cv_posanim.value && stplyr->kartstuff[k_positiondelay]) || stplyr->exiting) { scale *= 2; @@ -8806,9 +8800,7 @@ static void K_DrawKartPositionNum(INT32 num) } if (splitscreen || cv_smallposnum.value || wheeloffs) - { scale /= 2; - } W = FixedMul(W<>FRACBITS; @@ -8855,46 +8847,38 @@ static void K_DrawKartPositionNum(INT32 num) } // Special case for 0 - if (num <= 0) + if (!num) { - V_DrawBlendingFixedPatch(fx<= 0); // This function does not draw negative numbers + // Draw the number while (num) { 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 { - boolean useRedNums = K_IsPlayerLosing(stplyr); - - if (addOrSub == B_SUBTRACT) - { - // Subtracting RED will look BLUE, and vice versa. - useRedNums = !useRedNums; - } - // Alternate frame every three frames - switch ((leveltime % 9) / 3) + switch (leveltime % 9) { - case 0: - if (useRedNums == true) + case 1: case 2: case 3: + if (K_IsPlayerLosing(stplyr)) localpatch = kp_positionnum[num % 10][4]; else localpatch = kp_positionnum[num % 10][1]; break; - case 1: - if (useRedNums == true) + case 4: case 5: case 6: + if (K_IsPlayerLosing(stplyr)) localpatch = kp_positionnum[num % 10][5]; else localpatch = kp_positionnum[num % 10][2]; break; - case 2: - if (useRedNums == true) + case 7: case 8: case 9: + if (K_IsPlayerLosing(stplyr)) localpatch = kp_positionnum[num % 10][6]; else localpatch = kp_positionnum[num % 10][3]; @@ -8905,11 +8889,9 @@ static void K_DrawKartPositionNum(INT32 num) } } else - { localpatch = kp_positionnum[num % 10][0]; - } - V_DrawBlendingFixedPatch((fx<width)*scale/2) : 0), (fy<height)*scale/2) : 0), scale, V_HUDTRANSHALF|fflags, localpatch, NULL, addOrSub); + V_DrawFixedPatch((fx<width)*scale/2) : 0), (fy<height)*scale/2) : 0), scale, V_HUDTRANSHALF|fflags, localpatch, NULL); // ^ if we overtake as p1 or p3 in splitscren, we shift it so that it doesn't go off screen. // ^ if we overtake as p1 in 2p splits, shift vertically so that this doesn't happen either.