Merge "No servers found" with server browser status line

This commit is contained in:
James R 2022-09-04 22:26:23 -07:00
parent 00c9abd652
commit 41d82d9baf

View file

@ -8608,10 +8608,14 @@ static void M_DrawServerCountAndHorizontalBar(void)
serverlistultimatecount - serverlistcount,
I_GetTime() / NEWTICRATE % 4, "...");
}
else
else if (serverlistcount > 0)
{
text = va("%d servers found", serverlistcount);
}
else
{
text = "No servers found";
}
}
radius = V_StringWidth(text, 0) / 2;
@ -8651,9 +8655,6 @@ static void M_DrawConnectMenu(void)
M_DrawServerCountAndHorizontalBar();
if (serverlistcount <= 0)
V_DrawString(currentMenu->x,currentMenu->y+SERVERHEADERHEIGHT, 0, "No servers found");
else
for (i = 0; i < min(serverlistcount - serverlistpage * SERVERS_PER_PAGE, SERVERS_PER_PAGE); i++)
{
INT32 slindex = i + serverlistpage * SERVERS_PER_PAGE;