mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
minor style tidy-up.
This commit is contained in:
parent
373ad04e92
commit
9811d8354f
1 changed files with 4 additions and 2 deletions
|
@ -263,12 +263,14 @@ float *Fog_GetColor (void)
|
||||||
c[3] = 1.0;
|
c[3] = 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0;i<3;i++)
|
for (i = 0; i < 3; i++) {
|
||||||
c[i] = CLAMP (0.f, c[i], 1.f);
|
c[i] = CLAMP (0.f, c[i], 1.f);
|
||||||
|
}
|
||||||
|
|
||||||
//find closest 24-bit RGB value, so solid-colored sky can match the fog perfectly
|
//find closest 24-bit RGB value, so solid-colored sky can match the fog perfectly
|
||||||
for (i=0;i<3;i++)
|
for (i = 0; i < 3; i++) {
|
||||||
c[i] = (float)(Q_rint(c[i] * 255)) / 255.0f;
|
c[i] = (float)(Q_rint(c[i] * 255)) / 255.0f;
|
||||||
|
}
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue