Mercurial > hg > openttd
diff src/industrytype.h @ 16154:29354dbd86d4 draft
(svn r20850) -Codechange: Add IndustrySpec::UsesSmoothEconomy() to deduplicate code.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 26 Sep 2010 11:04:30 +0000 (2010-09-26) |
parents | a4fa352275f4 |
children | 9da0e640ebb8 |
line wrap: on
line diff
--- a/src/industrytype.h +++ b/src/industrytype.h @@ -153,6 +153,12 @@ * @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; }; /**