Codechange: split ParseConnectionString into two functions
One also looks for a company, the other doesn't. There were more uses of the latter than the first, leaving very weird code all over the place.
This commit is contained in:
committed by
Patric Stout
parent
05612d60ae
commit
31897eaa7d
@@ -916,7 +916,7 @@ DEF_CONSOLE_CMD(ConNetworkConnect)
|
||||
uint16 rport = NETWORK_DEFAULT_PORT;
|
||||
CompanyID join_as = COMPANY_NEW_COMPANY;
|
||||
|
||||
ParseConnectionString(&company, &port, ip);
|
||||
ParseGameConnectionString(&company, &port, ip);
|
||||
|
||||
IConsolePrintF(CC_DEFAULT, "Connecting to %s...", ip);
|
||||
if (company != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user