MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / AddProducedCargo_Object

Function AddProducedCargo_Object

src/object_cmd.cpp:650–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650static void AddProducedCargo_Object(TileIndex tile, CargoArray &produced)
651{
652 if (!IsObjectType(tile, OBJECT_HQ)) return;
653
654 CargoType pass = GetCargoTypeByLabel(CT_PASSENGERS);
655 if (IsValidCargoType(pass)) produced[pass]++;
656 CargoType mail = GetCargoTypeByLabel(CT_MAIL);
657 if (IsValidCargoType(mail)) produced[mail]++;
658}
659
660
661static void GetTileDesc_Object(TileIndex tile, TileDesc &td)

Callers

nothing calls this directly

Calls 3

IsObjectTypeFunction · 0.85
GetCargoTypeByLabelFunction · 0.85
IsValidCargoTypeFunction · 0.85

Tested by

no test coverage detected