(svn r9366) -Codechange: Unify the different houses acceptances attributes on their cargo counterpart, as well as specifying cargo slot.

This commit is contained in:
belugas
2007-03-20 02:24:14 +00:00
parent 1bea18b440
commit b82ed41a19
4 changed files with 361 additions and 255 deletions

View File

@@ -406,10 +406,7 @@ static void GetAcceptedCargo_Town(TileIndex tile, AcceptedCargo ac)
{
HouseSpec *hs = GetHouseSpecs(GetHouseType(tile));
ac[CT_PASSENGERS] = hs->passenger_acceptance;
ac[CT_MAIL] = hs->mail_acceptance;
ac[CT_GOODS] = hs->goods_acceptance;
ac[CT_FOOD] = hs->food_acceptance;
for (uint8 i = 0; i < 3; i++) ac[hs->accepts_cargo[i]] = hs->cargo_acceptance[i];
}
static void GetTileDesc_Town(TileIndex tile, TileDesc *td)