Add: open Online Players GUI on starting/joining a server (#9479)

This commit is contained in:
Patric Stout
2021-08-15 00:17:10 +02:00
committed by GitHub
parent 1ef4d3cf19
commit 579f393374
3 changed files with 21 additions and 13 deletions

View File

@@ -868,6 +868,8 @@ NetworkRecvStatus ClientNetworkGameSocketHandler::Receive_SERVER_MAP_DONE(Packet
/* Say we received the map and loaded it correctly! */
SendMapOk();
ShowClientList();
/* New company/spectator (invalid company) or company we want to join is not active
* Switch local company to spectator and await the server's judgement */
if (_network_join.company == COMPANY_NEW_COMPANY || !Company::IsValidID(_network_join.company)) {