CBasicModel: Make use of size_t where applicable

Same behavior, but without some internal variable truncation.
This commit is contained in:
Lioncash
2020-06-15 19:47:55 -04:00
parent 4978bc9e5c
commit e18e73cca5
12 changed files with 78 additions and 60 deletions

View File

@@ -163,7 +163,7 @@ bool CGizmo::CheckSelectedAxes(const CRay& rkRay)
bool Hit = false;
float Dist;
for (uint32 iSurf = 0; iSurf < pModel->GetSurfaceCount(); iSurf++)
for (size_t iSurf = 0; iSurf < pModel->GetSurfaceCount(); iSurf++)
{
// Skip surface/box check - since we use lines the boxes might be too small
SSurface *pSurf = pModel->GetSurface(iSurf);
@@ -171,7 +171,7 @@ bool CGizmo::CheckSelectedAxes(const CRay& rkRay)
if (SurfCheck.first)
{
if ((!Hit) || (SurfCheck.second < Dist))
if (!Hit || SurfCheck.second < Dist)
Dist = SurfCheck.second;
Hit = true;