summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r--src/company_gui.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index 968a216d0..84040f080 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -2068,6 +2068,10 @@ static const WindowDesc _company_desc(
_nested_company_widgets, lengthof(_nested_company_widgets)
);
+/**
+ * Show the window with the overview of the company.
+ * @param company The company to show the window for.
+ */
void ShowCompany(CompanyID company)
{
if (!Company::IsValidID(company)) return;
@@ -2175,7 +2179,10 @@ static const WindowDesc _buy_company_desc(
_nested_buy_company_widgets, lengthof(_nested_buy_company_widgets)
);
-
+/**
+ * Show the query to buy another company.
+ * @param company The company to buy.
+ */
void ShowBuyCompanyDialog(CompanyID company)
{
AllocateWindowDescFront<BuyCompanyWindow>(&_buy_company_desc, company);