mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
Truncate gametype name in server list if it's too long
This commit is contained in:
parent
281f30c4fd
commit
b4ebb01e2d
1 changed files with 6 additions and 1 deletions
|
@ -10020,7 +10020,12 @@ static void M_DrawConnectMenu(void)
|
|||
V_DrawSmallString(currentMenu->x+46,S_LINEY(i)+8, globalflags,
|
||||
va("Players: %02d/%02d", serverlist[slindex].info.numberofplayer, serverlist[slindex].info.maxplayer));
|
||||
|
||||
V_DrawSmallString(currentMenu->x+112, S_LINEY(i)+8, globalflags, va("Gametype: %s", gt));
|
||||
if (strlen(gt) > 11)
|
||||
gt = va("Gametype: %.11s...", gt);
|
||||
else
|
||||
gt = va("Gametype: %s", gt);
|
||||
|
||||
V_DrawSmallString(currentMenu->x+112, S_LINEY(i)+8, globalflags, gt);
|
||||
|
||||
MP_ConnectMenu[i+FIRSTSERVERLINE].status = IT_STRING | IT_CALL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue