diff options
author | alberth <alberth@openttd.org> | 2010-11-13 15:02:31 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-11-13 15:02:31 +0000 |
commit | 1bf94674dfb507849bc5f6c7dffc112cdf89b308 (patch) | |
tree | 396647189733cdef3b68c5cd18ae6e7007b509f9 /src/industry.h | |
parent | d46a2ef122a4dc3a44bfba97a1e7c5f112344c0c (diff) | |
download | openttd-1bf94674dfb507849bc5f6c7dffc112cdf89b308.tar.xz |
(svn r21166) -Codechange: Move MaybeNewIndustry() to IndustryBuildData::TryBuildNewIndustry().
Diffstat (limited to 'src/industry.h')
-rw-r--r-- | src/industry.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/industry.h b/src/industry.h index 364c3b31b..cdf9d0c78 100644 --- a/src/industry.h +++ b/src/industry.h @@ -143,4 +143,13 @@ void ReleaseDisastersTargetingIndustry(IndustryID); #define FOR_ALL_INDUSTRIES_FROM(var, start) FOR_ALL_ITEMS_FROM(Industry, industry_index, var, start) #define FOR_ALL_INDUSTRIES(var) FOR_ALL_INDUSTRIES_FROM(var, 0) +/** + * Data for managing the number and type of industries in the game. + */ +struct IndustryBuildData { + void TryBuildNewIndustry(); +}; + +extern IndustryBuildData _industry_builder; + #endif /* INDUSTRY_H */ |