(svn r3135) Use symbolic names in the tables, which hold the information about accepted goods of industry tiles, instead of magic numbers

This commit is contained in:
tron
2005-11-04 16:12:48 +00:00
parent a21762980d
commit d42b7649a4
2 changed files with 135 additions and 73 deletions

View File

@@ -411,16 +411,16 @@ static uint GetSlopeTileh_Industry(const TileInfo* ti)
static void GetAcceptedCargo_Industry(TileIndex tile, AcceptedCargo ac)
{
int m5 = _m[tile].m5;
int a;
CargoID a;
a = _industry_map5_accepts_1[m5];
if (a >= 0) ac[a] = (a == 0) ? 1 : 8;
if (a != CT_INVALID) ac[a] = (a == 0) ? 1 : 8;
a = _industry_map5_accepts_2[m5];
if (a >= 0) ac[a] = 8;
if (a != CT_INVALID) ac[a] = 8;
a = _industry_map5_accepts_3[m5];
if (a >= 0) ac[a] = 8;
if (a != CT_INVALID) ac[a] = 8;
}
static void GetTileDesc_Industry(TileIndex tile, TileDesc *td)