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

Function ShowBuildIndustryWindow

src/industry_gui.cpp:765–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763};
764
765void ShowBuildIndustryWindow()
766{
767 if (_game_mode != GM_EDITOR && !Company::IsValidID(_local_company)) return;
768 if (BringWindowToFrontById(WC_BUILD_INDUSTRY, 0)) return;
769 new BuildIndustryWindow();
770}
771
772static void UpdateIndustryProduction(Industry *i);
773

Callers 3

MenuClickIndustryFunction · 0.85
ToolbarScenGenIndustryFunction · 0.85
OnHotkeyMethod · 0.85

Calls 1

BringWindowToFrontByIdFunction · 0.85

Tested by

no test coverage detected