From 578b5de9ecf597622f640cff987130283dd098ae Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 18 Nov 2010 14:09:20 +0000 Subject: [PATCH] changed default status output to match ProQuake 4.51 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10606 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/host_cmd.c b/host_cmd.c index d34034c3..7014c01e 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -174,14 +174,18 @@ void Host_Status_f (void) if (in == 0) // default layout { - // LordHavoc: we must use multiple prints for ProQuake compatibility - 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); + if (sv.protocol == PROTOCOL_QUAKE && svs.maxclients <= 99) + { + // LordHavoc: this is very touchy because we must maintain ProQuake compatible status output + print ("#%-2u %-16.16s %3i %2i:%02i:%02i\n", i+1, client->name, frags, hours, minutes, seconds); + print (" %s\n", ip); + } + else + { + // LordHavoc: no real restrictions here, not a ProQuake-compatible protocol anyway... + print ("#%-3u %-16.16s %4i %2i:%02i:%02i\n", i+1, client->name, frags, hours, minutes, seconds); + print (" %s\n", ip); + } } else if (in == 1) // extended layout { -- 2.39.2