diff options
author | belugas <belugas@openttd.org> | 2007-02-21 02:22:43 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-02-21 02:22:43 +0000 |
commit | 771932d8891e9f1e52b957958c97511317c36055 (patch) | |
tree | d4e3de75d0a2b45871683afdcf9f9343ad9e036f /src/industry.h | |
parent | ef2daa5060e251834e82df1ba3e081579ff84f2f (diff) | |
download | openttd-771932d8891e9f1e52b957958c97511317c36055.tar.xz |
(svn r8827) -Codechange: Cleanup of industry_cmd (Step-6). Implementation of IndustryTileSPec, the alter ego of IndustrySpec.
It offers identification of the different industry tiles in a more distinct manner, as well as regrouping scattered pieces of data across the sources. More to come
Diffstat (limited to 'src/industry.h')
-rw-r--r-- | src/industry.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/industry.h b/src/industry.h index a7b532381..f67ec4d2a 100644 --- a/src/industry.h +++ b/src/industry.h @@ -78,7 +78,13 @@ typedef struct IndustrySpec { StringID production_down_text; } IndustrySpec; +typedef struct IndustryTileSpec { + CargoID accepts_cargo[3]; + Slope slopes_refused; +} IndustryTileSpec; + const IndustrySpec *GetIndustrySpec(IndustryType thistype); +const IndustryTileSpec *GetIndustryTileSpec(IndustryGfx gfx); DECLARE_OLD_POOL(Industry, Industry, 3, 8000) |