Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/helpers/LongPathfinder.cpp
Show First 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | for (int j = 1; j < h - 1; ++j) | ||||
rows[j].Finish(); | rows[j].Finish(); | ||||
} | } | ||||
#undef TERRAIN_IS_PASSABLE | #undef TERRAIN_IS_PASSABLE | ||||
} | } | ||||
void reset(const Grid<NavcellData>* terrain, pass_class_t passClass) | void reset(const Grid<NavcellData>* terrain, pass_class_t passClass) | ||||
{ | { | ||||
PROFILE2("JumpPointCache reset"); | PROFILE3("JumpPointCache reset"); | ||||
TIMER(L"JumpPointCache reset"); | TIMER(L"JumpPointCache reset"); | ||||
m_Width = terrain->m_W; | m_Width = terrain->m_W; | ||||
m_Height = terrain->m_H; | m_Height = terrain->m_H; | ||||
ComputeRows(m_JumpPointsRight, *terrain, passClass, false, false); | ComputeRows(m_JumpPointsRight, *terrain, passClass, false, false); | ||||
ComputeRows(m_JumpPointsLeft, *terrain, passClass, false, true); | ComputeRows(m_JumpPointsLeft, *terrain, passClass, false, true); | ||||
ComputeRows(m_JumpPointsUp, *terrain, passClass, true, false); | ComputeRows(m_JumpPointsUp, *terrain, passClass, true, false); | ||||
▲ Show 20 Lines • Show All 746 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator