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

Function trackAimlessWanderPathing

src/OpenLoco/src/Vehicles/VehicleHead.cpp:5701–5706  ·  view source on GitHub ↗

0x004AC884 pos.x : ax pos.y : cx pos.z : dx tad : bp companyId : bl trackType : bh requiredMods : 0x0113601A queryMods : 0x0113601B state : see above

Source from the content-addressed store, hash-verified

5699 // queryMods : 0x0113601B
5700 // state : see above
5701 static uint16_t trackAimlessWanderPathing(const World::Pos3 pos, const uint16_t tad, const CompanyId companyId, const uint8_t trackType, const uint8_t requiredMods, const uint8_t queryMods)
5702 {
5703 Sub4AC884State state{};
5704 trackAimlessWanderPathingRecurse(pos, tad, companyId, trackType, requiredMods, queryMods, state);
5705 return state.unkFlags;
5706 }
5707
5708 // 0x004AC98B
5709 static void trackUpdateDistanceToTarget(const Pos3 curPos, const Sub4AC94FTarget& target, Sub4AC94FState& state)

Callers 1

trackPathingFunction · 0.85

Calls 1

Tested by

no test coverage detected