Skip to content

Commit

Permalink
fix other mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintWish committed Oct 19, 2023
1 parent 6932779 commit 88e8658
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engine/mathlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ float VectorNormalize(vec3_t v)
float length, ilength;
length = Length(v);

const int res = clamp(0.0, 1.0, 2.0);
//const int res = clamp(0.0, 1.0, 2.0);

if (length)
{
Expand Down Expand Up @@ -417,13 +417,13 @@ qboolean VectorCompare(const vec_t *v1, const vec_t *v2)
return TRUE;
}

#endif // #if !defined(REHLDS_SSE)

qboolean BoundsIntersect(const vec3_t mins1, const vec3_t maxs1, const vec3_t mins2, const vec3_t maxs2)
{
if (mins1[0] > maxs2[0] || mins1[1] > maxs2[1] || mins1[2] > maxs2[2])
return FALSE;
if (maxs1[0] < mins2[0] || maxs1[1] < mins2[1] || maxs1[2] < mins2[2])
return FALSE;
return TRUE;
}

#endif // #if !defined(REHLDS_SSE)
}

0 comments on commit 88e8658

Please sign in to comment.