mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-08 13:25:52 +00:00
CPathFindRegion: Resolve sign conversion warning
The only place this is used is in an unsigned context.
This commit is contained in:
parent
dc8a0d0d88
commit
ed37919018
@ -162,15 +162,18 @@ bool CPFRegion::FindBestPoint(std::vector<zeus::CVector3f>& polyPoints, const ze
|
|||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPFRegion::SetLinkTo(s32 idx) {
|
void CPFRegion::SetLinkTo(u32 idx) {
|
||||||
if (x8_numLinks <= 0)
|
if (x8_numLinks <= 0) {
|
||||||
return;
|
return;
|
||||||
for (u32 i = 0; i < x8_numLinks; ++i)
|
}
|
||||||
|
|
||||||
|
for (u32 i = 0; i < x8_numLinks; ++i) {
|
||||||
if (xc_startLink[i].GetRegion() == idx) {
|
if (xc_startLink[i].GetRegion() == idx) {
|
||||||
Data()->SetPathLink(i);
|
Data()->SetPathLink(i);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CPFRegion::DropToGround(zeus::CVector3f& point) const {
|
void CPFRegion::DropToGround(zeus::CVector3f& point) const {
|
||||||
point.z() -= (point - x4_startNode->GetPos()).dot(x18_normal) / x18_normal.z();
|
point.z() -= (point - x4_startNode->GetPos()).dot(x18_normal) / x18_normal.z();
|
||||||
|
@ -72,7 +72,7 @@ public:
|
|||||||
bool) const;
|
bool) const;
|
||||||
bool FindBestPoint(std::vector<zeus::CVector3f>& polyPoints, const zeus::CVector3f& point, u32 flags,
|
bool FindBestPoint(std::vector<zeus::CVector3f>& polyPoints, const zeus::CVector3f& point, u32 flags,
|
||||||
float paddingSq) const;
|
float paddingSq) const;
|
||||||
void SetLinkTo(s32 idx);
|
void SetLinkTo(u32 idx);
|
||||||
void DropToGround(zeus::CVector3f& point) const;
|
void DropToGround(zeus::CVector3f& point) const;
|
||||||
zeus::CVector3f GetLinkMidPoint(const CPFLink& link) const;
|
zeus::CVector3f GetLinkMidPoint(const CPFLink& link) const;
|
||||||
zeus::CVector3f FitThroughLink2d(const zeus::CVector3f& p1, const CPFLink& link, const zeus::CVector3f& p2,
|
zeus::CVector3f FitThroughLink2d(const zeus::CVector3f& p1, const CPFLink& link, const zeus::CVector3f& p2,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user