mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-06 01:55:52 +00:00
CPathFindSearch: Eliminate variable shadowing
This commit is contained in:
parent
078acce378
commit
9ec9f42457
@ -315,8 +315,8 @@ bool CPathFindSearch::Search(rstl::reserved_vector<CPFRegion*, 4>& regs1, const
|
|||||||
} else {
|
} else {
|
||||||
/* Compute next heuristic */
|
/* Compute next heuristic */
|
||||||
x0_area->ClosedSet().Rmv(linkReg->GetIndex());
|
x0_area->ClosedSet().Rmv(linkReg->GetIndex());
|
||||||
float h = (p2 - linkReg->GetCentroid()).magnitude();
|
const float nextHeuristic = (p2 - linkReg->GetCentroid()).magnitude();
|
||||||
linkReg->Data()->Setup(reg, g, h);
|
linkReg->Data()->Setup(reg, g, nextHeuristic);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make next potential candidate */
|
/* Make next potential candidate */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user