mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
Whitespace.
This commit is contained in:
parent
00c61fe07c
commit
bf18436ad5
1 changed files with 3 additions and 5 deletions
|
@ -445,8 +445,7 @@ VectorNormalize (vec3_t v)
|
||||||
float length;
|
float length;
|
||||||
|
|
||||||
length = DotProduct (v, v);
|
length = DotProduct (v, v);
|
||||||
if (length)
|
if (length) {
|
||||||
{
|
|
||||||
float ilength;
|
float ilength;
|
||||||
|
|
||||||
length = sqrt (length);
|
length = sqrt (length);
|
||||||
|
@ -466,13 +465,13 @@ _VectorNormalize (vec3_t v)
|
||||||
double length;
|
double length;
|
||||||
|
|
||||||
length = 0;
|
length = 0;
|
||||||
for (i=0 ; i < 3; i++)
|
for (i = 0; i < 3; i++)
|
||||||
length += v[i] * v[i];
|
length += v[i] * v[i];
|
||||||
length = sqrt (length);
|
length = sqrt (length);
|
||||||
if (length == 0)
|
if (length == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
for (i=0 ; i <3; i++)
|
for (i = 0; i < 3; i++)
|
||||||
v[i] /= length;
|
v[i] /= length;
|
||||||
|
|
||||||
return length;
|
return length;
|
||||||
|
@ -579,7 +578,6 @@ FloorDivMod (double numer, double denom, int *quotient, int *rem)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (numer >= 0.0) {
|
if (numer >= 0.0) {
|
||||||
|
|
||||||
x = floor (numer / denom);
|
x = floor (numer / denom);
|
||||||
q = (int) x;
|
q = (int) x;
|
||||||
r = (int) floor (numer - (x * denom));
|
r = (int) floor (numer - (x * denom));
|
||||||
|
|
Loading…
Reference in a new issue