X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=mathlib.c;h=ab50923c26b6c4c1ba9169839cac44a4d35e90ae;hp=d528451002f535b93ff6623fd691ab7f1eda60f0;hb=088d86ccd8820f33680aa850fd9bf80efd0a5227;hpb=b8c5c960db9d31f2d4eb3932d6388f0fd8cb9def;ds=inline diff --git a/mathlib.c b/mathlib.c index d5284510..ab50923c 100644 --- a/mathlib.c +++ b/mathlib.c @@ -62,7 +62,7 @@ float m_bytenormals[NUMVERTEXNORMALS][3] = {0.850651, -0.525731, 0.000000}, {0.955423, -0.295242, 0.000000}, {0.864188, -0.442863, 0.238856}, {0.951056, -0.162460, 0.262866}, {0.809017, -0.309017, 0.500000}, {0.681718, -0.147621, 0.716567}, -{0.850651, 0.000000, 0.525731}, {0.864188, 0.442863, -0.238856}, +{0.850651, 0.000000, 0.525731}, {0.864188, 0.442863, -0.238856}, {0.809017, 0.309017, -0.500000}, {0.951056, 0.162460, -0.262866}, {0.525731, 0.000000, -0.850651}, {0.681718, 0.147621, -0.716567}, {0.681718, -0.147621, -0.716567}, {0.850651, 0.000000, -0.525731}, @@ -94,7 +94,7 @@ float m_bytenormals[NUMVERTEXNORMALS][3] = {-0.716567, -0.681718, 0.147621}, {-0.525731, -0.850651, 0.000000}, {-0.500000, -0.809017, 0.309017}, {-0.238856, -0.864188, 0.442863}, {-0.262866, -0.951056, 0.162460}, {-0.864188, -0.442863, 0.238856}, -{-0.809017, -0.309017, 0.500000}, {-0.688191, -0.587785, 0.425325}, +{-0.809017, -0.309017, 0.500000}, {-0.688191, -0.587785, 0.425325}, {-0.681718, -0.147621, 0.716567}, {-0.442863, -0.238856, 0.864188}, {-0.587785, -0.425325, 0.688191}, {-0.309017, -0.500000, 0.809017}, {-0.147621, -0.716567, 0.681718}, {-0.425325, -0.688191, 0.587785}, @@ -138,9 +138,9 @@ byte NormalToByte(vec3_t n) void ByteToNormal(byte num, vec3_t n) { if (num < NUMVERTEXNORMALS) - VectorCopy(m_bytenormals[num], n) + VectorCopy(m_bytenormals[num], n); else - VectorClear(n) // FIXME: complain? + VectorClear(n); // FIXME: complain? } float Q_RSqrt(float number) @@ -693,17 +693,6 @@ void AngleMatrix (vec3_t angles, vec3_t translate, vec_t matrix[][4]) matrix[2][3] = translate[2]; } -int VectorCompare (vec3_t v1, vec3_t v2) -{ - int i; - - for (i=0 ; i<3 ; i++) - if (v1[i] != v2[i]) - return 0; - - return 1; -} - void VectorMASlow (vec3_t veca, float scale, vec3_t vecb, vec3_t vecc) { vecc[0] = veca[0] + scale*vecb[0];