Optimized VectorCompare()

This commit is contained in:
Nelson Rush 2000-01-03 22:10:13 +00:00
parent 5e087f73d6
commit d75ee8d6b7

View file

@ -315,12 +315,8 @@ void AngleVectors (vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
int VectorCompare (vec3_t v1, vec3_t v2)
{
int i;
for (i=0 ; i<3 ; i++)
if (v1[i] != v2[i])
return 0;
if (v1[0] != v2[0] || v1[1] != v2[1] || v1[2] != v2[2]) return 0;
return 1;
}