summaryrefslogtreecommitdiff
path: root/src/game/q_math.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/q_math.c')
-rw-r--r--src/game/q_math.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/q_math.c b/src/game/q_math.c
index cbc7fdac..2600459c 100644
--- a/src/game/q_math.c
+++ b/src/game/q_math.c
@@ -465,7 +465,7 @@ TA: takes an axis (forward + right + up)
*/
void AxisToAngles( vec3_t axis[3], vec3_t angles ) {
float length1;
- float yaw, pitch, roll;
+ float yaw, pitch, roll = 0.0f;
if ( axis[0][1] == 0 && axis[0][0] == 0 ) {
yaw = 0;
@@ -1362,8 +1362,8 @@ Distance from a point to some line
*/
float pointToLineDistance( const vec3_t p0, const vec3_t p1, const vec3_t p2 )
{
- vec3_t v, w, x, y;
- float c1, c2, b;
+ vec3_t v, w, y;
+ float c1, c2;
VectorSubtract( p2, p1, v );
VectorSubtract( p1, p0, w );