1
0
forked from 0ad/0ad

Fixes class types for Atlas pathfinding overlay

This was SVN commit r9978.
This commit is contained in:
historic_bruno 2011-08-08 01:04:18 +00:00
parent 065e13b4d5
commit 4a2adece07

View File

@ -238,8 +238,8 @@ void ViewGame::Render()
cmpPathfinder->SetDebugOverlay(true);
// Kind of a hack to make it update the terrain grid
ICmpPathfinder::Goal goal = { ICmpPathfinder::Goal::POINT, fixed::Zero(), fixed::Zero() };
u8 passClass = cmpPathfinder->GetPassabilityClass(m_DisplayPassability);
u8 costClass = cmpPathfinder->GetCostClass("default");
ICmpPathfinder::pass_class_t passClass = cmpPathfinder->GetPassabilityClass(m_DisplayPassability);
ICmpPathfinder::cost_class_t costClass = cmpPathfinder->GetCostClass("default");
cmpPathfinder->SetDebugPath(fixed::Zero(), fixed::Zero(), goal, passClass, costClass);
}
}