[quake3-commits] r1817 - trunk/code/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Jan 25 10:16:50 EST 2011
Author: thilo
Date: 2011-01-25 10:16:50 -0500 (Tue, 25 Jan 2011)
New Revision: 1817
Modified:
trunk/code/server/sv_ccmds.c
Log:
Make sure status reply always has at least one space between address and qport, important for ipv6 addresses.
Modified: trunk/code/server/sv_ccmds.c
===================================================================
--- trunk/code/server/sv_ccmds.c 2011-01-25 02:04:25 UTC (rev 1816)
+++ trunk/code/server/sv_ccmds.c 2011-01-25 15:16:50 UTC (rev 1817)
@@ -1097,21 +1097,32 @@
}
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);
Com_Printf (" %5i", cl->rate);
More information about the quake3-commits
mailing list