shithub: choc

Download patch

ref: 5c4a7a14d1789cba208834bb3663821c110d2d02
parent: ac034f8966947a732d12d7c310dd130f75584a49
author: Simon Howard <fraggle@soulsphere.org>
date: Sun Oct 8 16:45:55 EDT 2017

net: Make "Players" column more compact.

This should usually (always?) be no more than 4 characters wide, and
we can offset the column header to the left slightly.

--- a/src/net_query.c
+++ b/src/net_query.c
@@ -698,7 +698,7 @@
 
     putchar('\n');
     formatted_printf(5, "Ping");
-    formatted_printf(22, "Address");
+    formatted_printf(18, "Address");
     formatted_printf(8, "Players");
     puts("Description");
 
@@ -724,8 +724,8 @@
 
     formatted_printf(5, "%4i", ping_time);
     formatted_printf(22, "%s", NET_AddrToString(addr));
-    formatted_printf(8, "%i/%i", data->num_players, 
-                                 data->max_players);
+    formatted_printf(4, "%i/%i ", data->num_players,
+                                  data->max_players);
 
     if (data->gamemode != indetermined)
     {