From c53833bfbd1d3758e84bea62999a89371f17b04a Mon Sep 17 00:00:00 2001 From: rambetter Date: Mon, 3 Jan 2011 07:05:40 +0000 Subject: [PATCH] Grr, this should have been part of the last commit and I realized this only after there were unsaved buffers in emacs when I was quitting out of everything. This is a comment in map.c related to USE_HASHING, and how we should test points against the plane even if it's off. Speaking of which, I should proofread the USE_HASHING hashing algorithm to make sure it's not causing any problems. git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/Rambetter-math-fix-experiments@405 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- tools/quake3/q3map2/map.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/quake3/q3map2/map.c b/tools/quake3/q3map2/map.c index 4011de37..f3ceffe9 100644 --- a/tools/quake3/q3map2/map.c +++ b/tools/quake3/q3map2/map.c @@ -395,6 +395,9 @@ int FindFloatPlane( vec3_t normal, vec_t dist, int numPoints, vec3_t *points ) { if( PlaneEqual( p, normal, dist ) ) return i; + // TODO: Note that the non-USE_HASHING code does not compute epsilons + // for the provided points. It should do that. I think this code + // is unmaintained because nobody sets USE_HASHING to off. } return CreateNewFloatPlane( normal, dist );