prevent tab rankings from crashing when map has no name

thought i already did that lol
This commit is contained in:
alufolie91 committed 2023-12-05 22:18:32 +01:00
1 parent ca30725f8d
commit a96fb7d247
2 files changed
+7 -4

No files matched your search

+5 -2
View File
@@ -2719,8 +2719,11 @@ static void HU_DrawRankings(void)
//else
//V_DrawString(4, 188, hilicol|V_SNAPTOBOTTOM|V_SNAPTOLEFT, gametype_cons_t[gametype].strvalue);
// draw the current map in the lower right
V_DrawString(4, 188, hilicol|V_SNAPTOBOTTOM|V_SNAPTOLEFT, G_BuildMapTitle(gamemap));
// draw the current map in the lower right if theres none just say its unknown
if (!G_BuildMapTitle(gamemap))
V_DrawString(4, 188, hilicol|V_SNAPTOBOTTOM|V_SNAPTOLEFT, "UNKNOWN");
else
V_DrawString(4, 188, hilicol|V_SNAPTOBOTTOM|V_SNAPTOLEFT, G_BuildMapTitle(gamemap));
if (G_GametypeHasTeams())
{
+2 -2
View File
@@ -8248,7 +8248,7 @@ static void K_DrawKartPositionNum(INT32 num)
}
if (splitscreen || (cv_showinput.value && !splitscreen))
scale /= 2;
scale /= 2;
W = FixedMul(W<<FRACBITS, scale)>>FRACBITS;
@@ -8759,7 +8759,7 @@ static void K_drawKartSpeedometer(void)
V_DrawKartString(SPDM_X, SPDM_Y, V_HUDTRANS|splitflags, va("%4d %%", convSpeed));
}
}
else if (cv_newspeedometer.value == 2 && snw_speedo ) { // why bother if we dont?
else if (cv_newspeedometer.value == 2 && snw_speedo) { // why bother if we dont?
if (!K_UseColorHud())
V_DrawScaledPatch(SPDM_X + 1, SPDM_Y + 4, (V_HUDTRANS|splitflags), (skp_smallsticker));
else