mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 12:06:41 +00:00
Codechange: make IndustryAvailabilityCallType a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
89174e891a
commit
77be3fc12d
@@ -311,7 +311,7 @@ class BuildIndustryWindow : public Window {
|
||||
|
||||
void UpdateAvailability()
|
||||
{
|
||||
this->enabled = this->selected_type != IT_INVALID && (_game_mode == GM_EDITOR || GetIndustryProbabilityCallback(this->selected_type, IACT_USERCREATION, 1) > 0);
|
||||
this->enabled = this->selected_type != IT_INVALID && (_game_mode == GM_EDITOR || GetIndustryProbabilityCallback(this->selected_type, IndustryAvailabilityCallType::UserCreation, 1) > 0);
|
||||
}
|
||||
|
||||
void SetupArrays()
|
||||
|
||||
Reference in New Issue
Block a user