From 29a66d7a5cf87d0cfc288e15833ddc1e3f8c0e5c Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 28 Mar 2015 01:03:48 -0400 Subject: net: Include port number in address strings. When generating string representations of network addresses, include the UDP port number if it isn't the standard port number. This is necessary because the string version of the address is used by the setup tool when filling in the address field; if a non-standard port is used then it needs to be included. Also fix byte swapping on the address portion in the same function. Thanks to Alexandre-Xavier for the bug report on #469. --- src/setup/multiplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/setup') diff --git a/src/setup/multiplayer.c b/src/setup/multiplayer.c index 6b294077..53b8ba26 100644 --- a/src/setup/multiplayer.c +++ b/src/setup/multiplayer.c @@ -957,7 +957,7 @@ static void ServerQueryWindow(char *title) TXT_NewScrollPane(70, 10, results_table = TXT_NewTable(3))); - TXT_SetColumnWidths(results_table, 7, 16, 46); + TXT_SetColumnWidths(results_table, 7, 22, 40); TXT_SetPeriodicCallback(QueryPeriodicCallback, results_table, 1); TXT_SignalConnect(query_window, "closed", QueryWindowClosed, NULL); -- cgit v1.2.3