From 9e5b7f430d3c5f30042c1fa380ed6b4be13c884d Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Wed, 8 Aug 2001 06:14:20 +0000 Subject: 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.) --- src/maths.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/maths.c') 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 */ -- cgit v1.3