MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ShowCompany

Function ShowCompany

src/company_gui.cpp:2307–2312  ·  view source on GitHub ↗

* Show the window with the overview of the company. * @param company The company to show the window for. */

Source from the content-addressed store, hash-verified

2305 * @param company The company to show the window for.
2306 */
2307void ShowCompany(CompanyID company)
2308{
2309 if (!Company::IsValidID(company)) return;
2310
2311 AllocateWindowDescFront<CompanyWindow>(_company_desc, company);
2312}
2313
2314/**
2315 * Redraw all windows with company infrastructure counts.

Callers 5

HandleClickMethod · 0.85
MenuClickCompanyFunction · 0.85
OnHotkeyMethod · 0.85
ClickTile_ObjectFunction · 0.85
HandleLinkClickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected