summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-05-11 14:59:55 +0200
committerPatric Stout <github@truebrain.nl>2021-07-10 20:17:07 +0200
commitcbaac5609fb9017790c5cc747b2c60df1eb2b4a9 (patch)
tree3a94bf5f9e023318927707c0941c2a5c52c8bd07 /src/network
parent92cdfffbd1743b6209526d5f406faa963b7c743e (diff)
downloadopenttd-cbaac5609fb9017790c5cc747b2c60df1eb2b4a9.tar.xz
Codechange: use UpdateNetworkGameWindow() over manually marking window dirty
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index fe4d1249c..9f08062f3 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -590,7 +590,7 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::Receive_SERVER_GAME_INFO(Packe
item->online = true;
/* It could be either window, but only one is open, so redraw both. */
- SetWindowDirty(WC_NETWORK_WINDOW, WN_NETWORK_WINDOW_GAME);
+ UpdateNetworkGameWindow();
SetWindowDirty(WC_NETWORK_WINDOW, WN_NETWORK_WINDOW_LOBBY);
/* We will receive company info next, so keep connection open. */