MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / isWithinCatchmentDisplay

Function isWithinCatchmentDisplay

src/OpenLoco/src/World/Station.cpp:616–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614 }
615
616 bool isWithinCatchmentDisplay(const World::Pos2 pos)
617 {
618 const auto tilePos = World::toTileSpace(pos);
619 return _cargoMap.mapHas1(tilePos.x, tilePos.y);
620 }
621
622 // 0x0049B4E0
623 void Station::deliverCargoToTown(uint8_t cargoType, uint16_t cargoQuantity)

Callers 2

sub_491BC6Function · 0.85
paintSurfaceFunction · 0.85

Calls 2

toTileSpaceFunction · 0.85
mapHas1Method · 0.80

Tested by

no test coverage detected