Skip to content

Instantly share code, notes, and snippets.

@PeterN PeterN/.cpp Secret
Created Feb 22, 2019

Embed
What would you like to do?
while (pNode->m_parent != NULL) {
if (steps > 1 && --steps < YAPF_ROADVEH_PATH_CACHE_SEGMENTS) {
TrackdirByte td;
td = pNode->GetTrackdir();
path_cache.push_front(td);
}
pNode = pNode->m_parent;
}
->
while (pNode->m_parent != NULL) {
if (steps > 1) {
steps--;
if (steps < YAPF_ROADVEH_PATH_CACHE_SEGMENTS) {
TrackdirByte td;
td = pNode->GetTrackdir();
path_cache.push_front(td);
}
}
pNode = pNode->m_parent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.