(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
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user