Codechange: use GSCompanyMode::IsValid, IsDeity, and the precondition helpers
Direct 1:1 replacements in the code, and comments now refer to either GSCompanyMode::IsValid or GSCompanyMode::IsDeity instead of several variations on "company mode active" or "no company mode active".
This commit is contained in:
@@ -265,7 +265,7 @@ public:
|
||||
* @param industry_id The index of the industry.
|
||||
* @param control_flags New flags as a combination of IndustryControlFlags values.
|
||||
* @pre IsValidIndustry(industry_id).
|
||||
* @pre No ScriptCompanyMode may be in scope.
|
||||
* @pre ScriptCompanyMode::IsDeity().
|
||||
* @return True if the action succeeded.
|
||||
* @api -ai
|
||||
*/
|
||||
|
Reference in New Issue
Block a user