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

Function getTrackConnectionEnd

src/OpenLoco/src/Map/Track/Track.cpp:197–202  ·  view source on GitHub ↗

Part of 0x004A2604 For 0x004A2604 call this followed by getTrackConnections

Source from the content-addressed store, hash-verified

195 // Part of 0x004A2604
196 // For 0x004A2604 call this followed by getTrackConnections
197 ConnectionEnd getTrackConnectionEnd(const World::Pos3& pos, const uint16_t trackAndDirection)
198 {
199 const auto& trackData = TrackData::getUnkTrack(trackAndDirection);
200
201 return ConnectionEnd{ pos + trackData.pos, trackData.rotationEnd };
202 }
203
204 constexpr uint16_t kNullTad = 0xFFFFU;
205

Callers 15

sub_48715CFunction · 0.85
removeTrackFunction · 0.85
sub_4ACEF1Function · 0.85
sub_4AC1C2Method · 0.85
opposingTrainAtSignalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected