mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-22 10:40:56 +00:00
* Don't iterate through the list twice to print "No hidden emblems on this map".
* Make it "No hint available for this emblem" instead of "No hints available", which people may confuse as the first message (I know I did!)
This commit is contained in:
parent
514616c546
commit
b76a1d3df7
1 changed files with 4 additions and 4 deletions
|
@ -6972,7 +6972,9 @@ static void M_DrawEmblemHints(void)
|
||||||
x = (local > NUMHINTS ? 4 : 12);
|
x = (local > NUMHINTS ? 4 : 12);
|
||||||
y = 8;
|
y = 8;
|
||||||
|
|
||||||
for (i = 0; i < numemblems; i++)
|
if (!local)
|
||||||
|
V_DrawCenteredString(160, 48, V_YELLOWMAP, "No hidden emblems on this map.");
|
||||||
|
else for (i = 0; i < numemblems; i++)
|
||||||
{
|
{
|
||||||
emblem = &emblemlocations[i];
|
emblem = &emblemlocations[i];
|
||||||
if (emblem->level != gamemap || emblem->type > ET_SKIN)
|
if (emblem->level != gamemap || emblem->type > ET_SKIN)
|
||||||
|
@ -6993,7 +6995,7 @@ static void M_DrawEmblemHints(void)
|
||||||
if (emblem->hint[0])
|
if (emblem->hint[0])
|
||||||
hint = emblem->hint;
|
hint = emblem->hint;
|
||||||
else
|
else
|
||||||
hint = M_GetText("No hints available.");
|
hint = M_GetText("No hint available for this emblem.");
|
||||||
hint = V_WordWrap(40, BASEVIDWIDTH-12, 0, hint);
|
hint = V_WordWrap(40, BASEVIDWIDTH-12, 0, hint);
|
||||||
if (local > NUMHINTS)
|
if (local > NUMHINTS)
|
||||||
V_DrawThinString(x+28, y, V_RETURN8|V_ALLOWLOWERCASE|collected, hint);
|
V_DrawThinString(x+28, y, V_RETURN8|V_ALLOWLOWERCASE|collected, hint);
|
||||||
|
@ -7010,8 +7012,6 @@ static void M_DrawEmblemHints(void)
|
||||||
else if (j >= NUMHINTS*2)
|
else if (j >= NUMHINTS*2)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!j)
|
|
||||||
V_DrawCenteredString(160, 48, V_YELLOWMAP, "No hidden emblems on this map.");
|
|
||||||
|
|
||||||
M_DrawGenericMenu();
|
M_DrawGenericMenu();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue