(svn r20850) -Codechange: Add IndustrySpec::UsesSmoothEconomy() to deduplicate code.

This commit is contained in:
frosch
2010-09-26 11:04:30 +00:00
parent 717fcd09c6
commit b65f463e33
2 changed files with 15 additions and 6 deletions

View File

@@ -153,6 +153,12 @@ struct IndustrySpec {
* @return the cost (inflation corrected etc)
*/
Money GetRemovalCost() const;
/**
* Determines whether this industrytype uses smooth economy or whether it uses standard/newgrf production changes.
* @return true if smooth economy is used.
*/
bool UsesSmoothEconomy() const;
};
/**