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~63 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e39ed2447e3de0a1e4812fce2d2ac95ce4d46296;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 ::stable-branch::merge=578b5de9ecf597622f640cff987130283dd098ae --- diff --git a/host_cmd.c b/host_cmd.c index 277fc530..41d65619 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 {