Fix overlapping Title CEcho text

If an admin title cecho is active, do not render individual viewport title cechos.

Some information is lost, but currently everything expressed through them is not unique while admin title cechos generally are, so they're a safe thing to sacrifice given limited screen space.
This commit is contained in:
toaster 2023-08-26 21:44:51 +01:00
parent 5d8efb66a4
commit 908022c821

View file

@ -2079,10 +2079,18 @@ drawontop:
if (cechotimer)
HU_DrawCEcho();
const struct tcecho_state *firststate = &g_tcecho[0];
// Server messages overwrite player-specific messages
if (HU_TitlecardCEchoElapsed(firststate) < firststate->duration)
{
HU_DrawTitlecardCEcho(0);
}
else
{
size_t i;
for (i = 0; i < NUM_TCECHO_STATES; ++i)
for (i = 1; i < NUM_TCECHO_STATES; ++i)
{
HU_DrawTitlecardCEcho(i);
}