Codechange: use UpdateNetworkGameWindow() over manually marking window dirty

This commit is contained in:
Patric Stout 2021-05-11 14:59:55 +02:00 committed by Patric Stout
parent 92cdfffbd1
commit cbaac5609f

View File

@ -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. */