summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-04-20 16:26:07 +0200
committerPatric Stout <github@truebrain.nl>2021-04-20 17:34:04 +0200
commit31897eaa7de865d41b46f7158c70f94debe1ec66 (patch)
tree5575e5bf60b6555d291a0bb25aa43fc35f6980e1 /src/console_cmds.cpp
parent05612d60ae0af94b9313d5a8b78ebf58a3eeab66 (diff)
downloadopenttd-31897eaa7de865d41b46f7158c70f94debe1ec66.tar.xz
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.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index cebf70198..b3819115c 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -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) {