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

Method UpdateAvailability

src/industry_gui.cpp:310–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308 static const int MAX_MINWIDTH_LINEHEIGHTS = 20;
309
310 void UpdateAvailability()
311 {
312 this->enabled = this->selected_type != IT_INVALID && (_game_mode == GM_EDITOR || GetIndustryProbabilityCallback(this->selected_type, IACT_USERCREATION, 1) > 0);
313 }
314
315 void SetupArrays()
316 {

Callers 3

SetupArraysMethod · 0.95
OnClickMethod · 0.95
BuildIndustryWindowClass · 0.95

Calls 1

Tested by

no test coverage detected