]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
changed default status output to match ProQuake 4.51
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 18 Nov 2010 14:09:20 +0000 (14:09 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 19 Nov 2010 12:34:43 +0000 (13:34 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10606 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=578b5de9ecf597622f640cff987130283dd098ae

host_cmd.c

index 277fc5303f5290c139ce0174c53cd8cc76b15c72..41d65619070eaaeec89a585e451bb45a6a60d46e 100644 (file)
@@ -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
                {