From: havoc Date: Thu, 18 Nov 2010 14:09:20 +0000 (+0000) Subject: changed default status output to match ProQuake 4.51 X-Git-Tag: xonotic-v0.1.0preview~56^2~12 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=578b5de9ecf597622f640cff987130283dd098ae;p=xonotic%2Fdarkplaces.git 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 --- 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 {