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

Function updateTrafficHandedness

src/OpenLoco/src/Objects/ObjectManager.cpp:1147–1156  ·  view source on GitHub ↗

0x0047D9F2

Source from the content-addressed store, hash-verified

1145
1146 // 0x0047D9F2
1147 static void updateTrafficHandedness()
1148 {
1149 getGameState().trafficHandedness = 0; // Default to left hand traffic
1150
1151 auto* regionObj = ObjectManager::get<RegionObject>();
1152 if (regionObj != nullptr)
1153 {
1154 getGameState().trafficHandedness = (regionObj->flags & RegionObjectFlags::rightHandTraffic) != RegionObjectFlags::none;
1155 }
1156 }
1157
1158 // 0x004748FA
1159 void updateTerraformObjects()

Callers 1

updateTerraformObjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected