summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-01 13:55:39 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-01 18:30:08 +0200
commit39c51c35f4566553ec3c6c273c2642d796070521 (patch)
tree484e4da494cc3640cf6abe05cbd35c0ea32fa860
parent3bd416bfdba351d9d76a753a0c5b4abdd84fea39 (diff)
downloadopenttd-39c51c35f4566553ec3c6c273c2642d796070521.tar.xz
Fix #6598: Do not disconnect before company number validation
NetworkClientConnectGame already does a NetworkDisconnect, so no reason to do it here
-rw-r--r--src/console_cmds.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 71f2d4b7b..69a44e63d 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -914,7 +914,6 @@ DEF_CONSOLE_CMD(ConNetworkConnect)
}
if (argc < 2) return false;
- if (_networking) NetworkDisconnect(); // we are in network-mode, first close it!
return NetworkClientConnectGame(argv[1], COMPANY_NEW_COMPANY);
}