diff options
author | Patric Stout <truebrain@openttd.org> | 2021-05-11 14:59:55 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-07-10 20:17:07 +0200 |
commit | cbaac5609fb9017790c5cc747b2c60df1eb2b4a9 (patch) | |
tree | 3a94bf5f9e023318927707c0941c2a5c52c8bd07 /src/network | |
parent | 92cdfffbd1743b6209526d5f406faa963b7c743e (diff) | |
download | openttd-cbaac5609fb9017790c5cc747b2c60df1eb2b4a9.tar.xz |
Codechange: use UpdateNetworkGameWindow() over manually marking window dirty
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/network_client.cpp | 2 |
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. */ |