mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2025-01-18 21:51:37 +00:00
Make sure status reply always has at least one space between address and qport, important for ipv6 addresses.
This commit is contained in:
parent
5c0ae99642
commit
b179fb087c
1 changed files with 18 additions and 7 deletions
|
@ -1097,20 +1097,31 @@ static void SV_Status_f( void ) {
|
|||
}
|
||||
|
||||
Com_Printf ("%s", cl->name);
|
||||
// TTimo adding a ^7 to reset the color
|
||||
// NOTE: colored names in status breaks the padding (WONTFIX)
|
||||
Com_Printf ("^7");
|
||||
l = 16 - strlen(cl->name);
|
||||
for (j=0 ; j<l ; j++)
|
||||
|
||||
// TTimo adding a ^7 to reset the color
|
||||
// NOTE: colored names in status breaks the padding (WONTFIX)
|
||||
Com_Printf ("^7");
|
||||
l = 14 - strlen(cl->name);
|
||||
j = 0;
|
||||
|
||||
do
|
||||
{
|
||||
Com_Printf (" ");
|
||||
j++;
|
||||
} while(j < l);
|
||||
|
||||
Com_Printf ("%7i ", svs.time - cl->lastPacketTime );
|
||||
|
||||
s = NET_AdrToString( cl->netchan.remoteAddress );
|
||||
Com_Printf ("%s", s);
|
||||
l = 22 - strlen(s);
|
||||
for (j=0 ; j<l ; j++)
|
||||
Com_Printf (" ");
|
||||
j = 0;
|
||||
|
||||
do
|
||||
{
|
||||
Com_Printf(" ");
|
||||
j++;
|
||||
} while(j < l);
|
||||
|
||||
Com_Printf ("%5i", cl->netchan.qport);
|
||||
|
||||
|
|
Loading…
Reference in a new issue