mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
work around a gcc (GCC) 3.1 20020420 (prerelease) bug in darwin (ppc?)
This commit is contained in:
parent
122b0d81e7
commit
f75c88b247
1 changed files with 8 additions and 1 deletions
|
@ -116,9 +116,16 @@ R_ClipSpriteFace (int nump, clipplane_t *pclipplane)
|
||||||
|
|
||||||
if (dists[i] == 0 || dists[i + 1] == 0)
|
if (dists[i] == 0 || dists[i + 1] == 0)
|
||||||
continue;
|
continue;
|
||||||
|
#if __APPLE_CC__ == 1173
|
||||||
|
// bug in gcc (GCC) 3.1 20020420 (prerelease) for darwin
|
||||||
|
if ((dists[i] > 0) && (dists[i + 1] > 0))
|
||||||
|
continue;
|
||||||
|
if ((dists[i] <= 0) && (dists[i + 1] <= 0))
|
||||||
|
continue;
|
||||||
|
#else
|
||||||
if ((dists[i] > 0) == (dists[i + 1] > 0))
|
if ((dists[i] > 0) == (dists[i + 1] > 0))
|
||||||
continue;
|
continue;
|
||||||
|
#endif
|
||||||
|
|
||||||
// split it into a new vertex
|
// split it into a new vertex
|
||||||
frac = dists[i] / (dists[i] - dists[i + 1]);
|
frac = dists[i] / (dists[i] - dists[i + 1]);
|
||||||
|
|
Loading…
Reference in a new issue