summaryrefslogtreecommitdiff
path: root/src/maths.c
diff options
context:
space:
mode:
authorSteven Fuller <relnev@icculus.org>2001-08-08 06:14:20 +0000
committerPatryk Obara <dreamer.tan@gmail.com>2019-08-20 02:22:36 +0200
commit9e5b7f430d3c5f30042c1fa380ed6b4be13c884d (patch)
tree46010c2b8d4509ec43bc559f8e4d45d194aa6bfe /src/maths.c
parent665f33b0f9014d8501106f74cb629d3d5d1877be (diff)
Moved inline assembly to a separate file for debugging.
Implemented GetTickCount/timeGetTime. Added basic SDL/OpenGL support. Draws something with no optimizations, but draws nothing with -O2. (What is drawn looks like garbage.)
Diffstat (limited to 'src/maths.c')
-rw-r--r--src/maths.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/maths.c b/src/maths.c
index 32222a1..711d4b4 100644
--- a/src/maths.c
+++ b/src/maths.c
@@ -1009,7 +1009,7 @@ void MatrixToEuler(MATRIXCH *m, EULER *e)
}
else CosMatrixPitch = 1;
-
+
SineMatrixYaw = WideMulNarrowDiv(
#if j_and_r_change
m->mat31 >> m2e_scale, ONE_FIXED_S, CosMatrixPitch);
@@ -2090,9 +2090,12 @@ int PointInPolygon(int *point, int *polygon, int c, int ppsize)
/* go back to first point */
polyp = polygon;
+dx = 0; /* TODO: uninitialized?? */
+
/* for each point */
while (0 != c)
{
+
/* is this line straddling the x co-ordinate of the point? */
/* if not it is not worth testing for intersection with the half-line */
/* we must be careful to get the strict and non-stict inequalities */