diff options
author | belugas <belugas@openttd.org> | 2006-10-23 16:35:27 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-10-23 16:35:27 +0000 |
commit | 9c1e89b0c09827a74a5ce6f36435d59f52c6e79a (patch) | |
tree | 71826ebc27fecd69eb4e473d48595d1933097659 /industry.h | |
parent | 57808404d48c81976b1bbd2b4a869003a4c776af (diff) | |
download | openttd-9c1e89b0c09827a74a5ce6f36435d59f52c6e79a.tar.xz |
(svn r6904) -CodeChange : Cleanup of industry_cmd (Step-5).
Add member life_type to IndustrySpec and remove the now useless _industry_close_mode array
Diffstat (limited to 'industry.h')
-rw-r--r-- | industry.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/industry.h b/industry.h index d654e0735..8e7909cb4 100644 --- a/industry.h +++ b/industry.h @@ -12,6 +12,12 @@ enum { INVALID_INDUSTRY = 0xFFFF, }; +typedef enum IndustryLifeTypes { + INDUSTRYLIFE_NOT_CLOSABLE, ///< Industry can never close + INDUSTRYLIFE_PRODUCTION, ///< Industry can close and change of production + INDUSTRYLIFE_CLOSABLE, ///< Industry can only close (no production change) +} IndustryLifeType; + struct Industry { TileIndex xy; byte width; /* swapped order of w/h with town */ @@ -62,6 +68,8 @@ typedef struct IndustrySpec { byte minimal_cargo; CargoID accepts_cargo[3]; + IndustryLifeType life_type; //this is also known as Industry production flag, in newgrf specs + StringID closure_text; StringID production_up_text; StringID production_down_text; @@ -191,10 +199,4 @@ enum { IT_INVALID = 255, }; -typedef enum IndustryLifeTypes { - INDUSTRYLIFE_NOT_CLOSABLE, ///< Industry can never close - INDUSTRYLIFE_PRODUCTION, ///< Industry can close and change of production - INDUSTRYLIFE_CLOSABLE, ///< Industry can only close (no production change) -} IndustryLifeType; - #endif /* INDUSTRY_H */ |