diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-12-18 02:23:39 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | 95b8b49b7602e4e2d3cd9e38273fa94451bec780 (patch) | |
| tree | 2680f7beffc79957bb057cb018d4d7bc5c8ff2a3 /src/maths.c | |
| parent | abab1011ac9f80ca3b734bd70415ff255965441b (diff) | |
More Warning cleanups (Tim Beckmann)
Diffstat (limited to 'src/maths.c')
| -rw-r--r-- | src/maths.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/maths.c b/src/maths.c index 711d4b4..6cdbc54 100644 --- a/src/maths.c +++ b/src/maths.c @@ -1,5 +1,6 @@ #include "3dc.h" #include "inline.h" +#include "maths.h" #define UseTimsPinp Yes @@ -2150,7 +2151,7 @@ dx = 0; /* TODO: uninitialized?? */ /* small line -- use 32-bit values */ /* interpolate z */ t = (polyp[1] - sz) * (x - sx) - (polyp[0] - sx) * (z - sz); - if (t < 0 && sgnx < 0 || 0 < t && 0 < sgnx) + if ((t < 0 && sgnx < 0) || (0 < t && 0 < sgnx)) { /* we have an intersection */ intersects++; |
