diff options
author | frosch <frosch@openttd.org> | 2010-09-26 11:04:30 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-09-26 11:04:30 +0000 |
commit | b65f463e33af617bd0399e41e3618f2ef8b1f896 (patch) | |
tree | 2c0831f548b25fda6473a30d93135d2d828150d2 /src/industrytype.h | |
parent | 717fcd09c65a5e26116059d30bcd9e1b6e924c66 (diff) | |
download | openttd-b65f463e33af617bd0399e41e3618f2ef8b1f896.tar.xz |
(svn r20850) -Codechange: Add IndustrySpec::UsesSmoothEconomy() to deduplicate code.
Diffstat (limited to 'src/industrytype.h')
-rw-r--r-- | src/industrytype.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/industrytype.h b/src/industrytype.h index c534fa60a..c037ab61e 100644 --- a/src/industrytype.h +++ b/src/industrytype.h @@ -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; }; /** |