diff options
author | smatz <smatz@openttd.org> | 2009-06-10 22:05:01 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-10 22:05:01 +0000 |
commit | bea3fe2b8b2352d471149a4c914f93c58aa11b83 (patch) | |
tree | 69bd9a4b24333a7da3f2f3d11af4aafff5c92583 /src/company_gui.cpp | |
parent | bc7e9514d247581e085b80a71dabbd6e635e5ded (diff) | |
download | openttd-bea3fe2b8b2352d471149a4c914f93c58aa11b83.tar.xz |
(svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r-- | src/company_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 0c0776cc9..04f280a73 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -1592,7 +1592,7 @@ struct CompanyWindow : Window this->SetWidgetHiddenState(CW_WIDGET_SELL_SHARE, local); this->SetWidgetHiddenState(CW_WIDGET_COMPANY_PASSWORD, !local || !_networking); this->SetWidgetHiddenState(CW_WIDGET_COMPANY_JOIN, local || !_networking); - this->SetWidgetDisabledState(CW_WIDGET_COMPANY_JOIN, !IsHumanCompany(c->index)); + this->SetWidgetDisabledState(CW_WIDGET_COMPANY_JOIN, c->is_ai); if (!local) { if (_settings_game.economy.allow_shares) { // Shares are allowed |