diff options
author | Patric Stout <truebrain@openttd.org> | 2021-04-23 01:52:57 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-04-24 21:43:58 +0200 |
commit | ff708c2c659477da04fab108ca8e46a60c0d60b0 (patch) | |
tree | 0a60165ca72b8cc20664bf04032ae0e172f4a13b /src/company_cmd.cpp | |
parent | 526635942451479bee66e9eb61c50f91ae48a7dd (diff) | |
download | openttd-ff708c2c659477da04fab108ca8e46a60c0d60b0.tar.xz |
Add: admin menu for companies in multiplayer games
You can now easily do:
- a password reset (unlock)
- remove an empty company (reset company)
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r-- | src/company_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index c3483a9bf..063d32d3f 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -571,7 +571,6 @@ Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY) GeneratePresidentName(c); SetWindowDirty(WC_GRAPH_LEGEND, 0); - InvalidateWindowClassesData(WC_CLIENT_LIST_POPUP); InvalidateWindowData(WC_CLIENT_LIST, 0); InvalidateWindowData(WC_LINKGRAPH_LEGEND, 0); BuildOwnerLegend(); @@ -909,6 +908,8 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 CompanyAdminRemove(c_index, (CompanyRemoveReason)reason); if (StoryPage::GetNumItems() == 0 || Goal::GetNumItems() == 0) InvalidateWindowData(WC_MAIN_TOOLBAR, 0); + InvalidateWindowData(WC_CLIENT_LIST, 0); + break; } |