mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 22:00:50 +00:00
fix compiling for clang
This commit is contained in:
parent
78634679f1
commit
15d0673685
2 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ static polyvertex_t *fracdivline(fdivline_t *bsp, polyvertex_t *v1,
|
||||||
v2dy = bsp->dy;
|
v2dy = bsp->dy;
|
||||||
|
|
||||||
den = v2dy*v1dx - v2dx*v1dy;
|
den = v2dy*v1dx - v2dx*v1dy;
|
||||||
if (fabsf(den) < 1.0E-36f)
|
if (fabsf((float)den) < 1.0E-36f)
|
||||||
return NULL; // parallel
|
return NULL; // parallel
|
||||||
|
|
||||||
// first check the frac along the polygon segment,
|
// first check the frac along the polygon segment,
|
||||||
|
|
|
@ -1220,7 +1220,7 @@ INT32 R_CreateColormap(char *p1, char *p2, char *p3)
|
||||||
continue;
|
continue;
|
||||||
if (maskcolor == extra_colormaps[i].maskcolor
|
if (maskcolor == extra_colormaps[i].maskcolor
|
||||||
&& fadecolor == extra_colormaps[i].fadecolor
|
&& fadecolor == extra_colormaps[i].fadecolor
|
||||||
&& fabsf(maskamt - extra_colormaps[i].maskamt) < 1.0E-36f
|
&& fabsf((float)(maskamt - extra_colormaps[i].maskamt)) < 1.0E-36f
|
||||||
&& fadestart == extra_colormaps[i].fadestart
|
&& fadestart == extra_colormaps[i].fadestart
|
||||||
&& fadeend == extra_colormaps[i].fadeend
|
&& fadeend == extra_colormaps[i].fadeend
|
||||||
&& fog == extra_colormaps[i].fog)
|
&& fog == extra_colormaps[i].fog)
|
||||||
|
|
Loading…
Reference in a new issue