mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Make the "nodes" command clearer
Because literally anyone who isn't a dev has no idea what those fucking numbers even mean... Before: $nodes 00 - Sonic - 01 - 666.66.420.42:5029 01 - Tales - 00 - self 02 - Nukes - 255 03 - Ammie - 255 04 - Fangs - 255 05 - Metal - 255 After: $nodes 00 - Sonic - node 01 - 666.66.420.42:5029 01 - Tales - node 00 - self 02 - Nukes 03 - Ammie 04 - Fangs 05 - Metal
This commit is contained in:
parent
d0fac1988a
commit
d95a1e2ff3
1 changed files with 7 additions and 3 deletions
|
@ -2588,9 +2588,13 @@ static void Command_Nodes(void)
|
||||||
if (playeringame[i])
|
if (playeringame[i])
|
||||||
{
|
{
|
||||||
CONS_Printf("%.2u: %*s", i, (int)maxlen, player_names[i]);
|
CONS_Printf("%.2u: %*s", i, (int)maxlen, player_names[i]);
|
||||||
CONS_Printf(" - %.2d", playernode[i]);
|
|
||||||
if (I_GetNodeAddress && (address = I_GetNodeAddress(playernode[i])) != NULL)
|
if (playernode[i] != UINT8_MAX)
|
||||||
CONS_Printf(" - %s", address);
|
{
|
||||||
|
CONS_Printf(" - node %.2d", playernode[i]);
|
||||||
|
if (I_GetNodeAddress && (address = I_GetNodeAddress(playernode[i])) != NULL)
|
||||||
|
CONS_Printf(" - %s", address);
|
||||||
|
}
|
||||||
|
|
||||||
if (IsPlayerAdmin(i))
|
if (IsPlayerAdmin(i))
|
||||||
CONS_Printf(M_GetText(" (verified admin)"));
|
CONS_Printf(M_GetText(" (verified admin)"));
|
||||||
|
|
Loading…
Reference in a new issue