Commit 53d4ad7c authored by Simon Budig's avatar Simon Budig

map-object: fix bogus if()-statement.

parent b8e7907a
......@@ -286,7 +286,12 @@ V3_Unit (HVect v)
static HVect u = {0, 0, 0, 0};
double vlen = sqrt(V3_Norm(v));
if (vlen != 0.0) u.x = v.x/vlen; u.y = v.y/vlen; u.z = v.z/vlen;
if (vlen != 0.0)
{
u.x = v.x/vlen;
u.y = v.y/vlen;
u.z = v.z/vlen;
}
return (u);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment