Patch by Nye Liu <nyet>

This commit is contained in:
Dabb 2000-10-07 10:56:33 +00:00
parent 8b573f8d7e
commit 20735dd8f7

View file

@ -408,7 +408,7 @@ SV_Status_f
*/ */
void SV_Status_f (void) void SV_Status_f (void)
{ {
int i, j, l; int i;
client_t *cl; client_t *cl;
float cpu, avg, pak; float cpu, avg, pak;
char *s; char *s;
@ -472,15 +472,11 @@ void SV_Status_f (void)
Con_Printf ("%5i %6i ", (int)cl->edict->v.frags, cl->userid); Con_Printf ("%5i %6i ", (int)cl->edict->v.frags, cl->userid);
s = NET_BaseAdrToString ( cl->netchan.remote_address); s = NET_BaseAdrToString ( cl->netchan.remote_address);
Con_Printf ("%s", s);
l = 16 - strlen(s);
for (j=0 ; j<l ; j++)
Con_Printf (" ");
Con_Printf ("%s", cl->name); Con_Printf ("%-15.15s ", s);
l = 16 - strlen(cl->name);
for (j=0 ; j<l ; j++) Con_Printf ("%-15.15s ", cl->name);
Con_Printf (" ");
if (cl->state == cs_connected) if (cl->state == cs_connected)
{ {
Con_Printf ("CONNECTING\n"); Con_Printf ("CONNECTING\n");