From ceffca771cc41ee317ebece14d17b44d79c5902e Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 16 Sep 2009 13:31:06 +0000 Subject: [PATCH] fix TH's status patch to again send the same data as before git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9203 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/host_cmd.c b/host_cmd.c index 949c4802..7947ccfc 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -171,29 +171,16 @@ void Host_Status_f (void) if (in == 0) // default layout { - print ("#%-3u ", i+1); - print ("%-16.16s ", client->name); - print ("%4i ", frags); - print ("%2i:%02i:%02i\n ", hours, minutes, seconds); - print ("%s\n", ip); + print ("#%-3u %-16.16s %3i %2i:%02i:%02i\n", i+1, client->name, frags, hours, minutes, seconds); + print (" %s\n", ip); } else if (in == 1) // extended layout { - k%2 ? print("^3") : print("^7"); - print ("%-21s ", ip); - print ("%2i ", packetloss); - print ("%4i ", ping); - print ("%2i:%02i:%02i ", hours, minutes, seconds); - print ("%4i ", frags); - print ("#%-3u ", i+1); - print ("^7%s\n", client->name); + print ("%s%-21s %2i %4i %2i:%02i:%02i %4i #%-3u ^7%s\n", k%2 ? "^3" : "^7", ip, packetloss, ping, hours, minutes, seconds, frags, i+1, client->name); } else if (in == 2) // reduced layout { - k%2 ? print("^3") : print("^7"); - print ("%-21s ", ip); - print ("#%-3u ", i+1); - print ("^7%s\n", client->name); + print ("%s%-21s #%-3u ^7%s\n", k%2 ? "^3" : "^7", ip, i+1, client->name); } } -- 2.39.2