mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-09 21:47:45 +00:00
CBasicModel: Make use of size_t where applicable
Same behavior, but without some internal variable truncation.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user