diff options
author | SamuXarick <43006711+SamuXarick@users.noreply.github.com> | 2021-06-15 13:00:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 14:00:50 +0200 |
commit | d0bcb9839a9080326ade985e4b109752fd88e2a6 (patch) | |
tree | fa68c0cc277710210cc3098ff4220355dc6c42a1 | |
parent | d31a535c87a5dc9f2333ddb00a116109fed68ec8 (diff) | |
download | openttd-d0bcb9839a9080326ade985e4b109752fd88e2a6.tar.xz |
Fix: you could join an AI company in multiplayer via the GUI (#9369)
-rw-r--r-- | src/network/network_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 3cdece77c..04303e7ac 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1894,7 +1894,7 @@ private: if (_network_server) this->buttons[line_count].emplace_back(new CompanyButton(SPR_ADMIN, STR_NETWORK_CLIENT_LIST_ADMIN_COMPANY_TOOLTIP, COLOUR_RED, company_id, &NetworkClientListWindow::OnClickCompanyAdmin, company_id == COMPANY_SPECTATOR)); this->buttons[line_count].emplace_back(chat_button); - if (own_ci->client_playas != company_id) this->buttons[line_count].emplace_back(new CompanyButton(SPR_JOIN, STR_NETWORK_CLIENT_LIST_JOIN_TOOLTIP, COLOUR_ORANGE, company_id, &NetworkClientListWindow::OnClickCompanyJoin)); + if (own_ci->client_playas != company_id) this->buttons[line_count].emplace_back(new CompanyButton(SPR_JOIN, STR_NETWORK_CLIENT_LIST_JOIN_TOOLTIP, COLOUR_ORANGE, company_id, &NetworkClientListWindow::OnClickCompanyJoin, company_id != COMPANY_SPECTATOR && Company::Get(company_id)->is_ai)); this->line_count += 1; |