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

Method setHasBridge

src/OpenLoco/include/OpenLoco/Map/RoadElement.h:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 bool hasGhostMods() const { return (_4 & 0x40) != 0; }
42 bool hasBridge() const { return (_4 & 0x80) != 0; }
43 void setHasBridge(bool hasBridge)
44 {
45 _4 &= ~0x80;
46 _4 |= hasBridge ? 0x80 : 0;
47 }
48 uint8_t laneOccupation() const { return (_4 & 0x30) >> 4; }
49 void setLaneOccupation(uint8_t newLaneOccupation)
50 {

Callers 2

createTrackFunction · 0.45
createRoadFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected