CPathFindRegion: Resolve sign conversion warning

The only place this is used is in an unsigned context.
This commit is contained in:
Lioncash 2020-05-08 15:49:27 -04:00
parent dc8a0d0d88
commit ed37919018
2 changed files with 7 additions and 4 deletions

View File

@ -162,14 +162,17 @@ 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 {

View File

@ -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,