summaryrefslogtreecommitdiff
path: root/src/maths.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/maths.c')
-rw-r--r--src/maths.c3
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++;