mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-01-20 07:30:49 +00:00
Optimized VectorCompare()
This commit is contained in:
parent
5e087f73d6
commit
d75ee8d6b7
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue