another intersect fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5113 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2010-05-30 07:34:52 +00:00
parent 3fd6af179f
commit 63f394cbc3
+1 -1
View File
@@ -239,7 +239,7 @@ static inline bool intersectcylinder(const vec &from, const vec &to, const vec &
{
if(nd <= 0) return false;
float cdist = -md / nd;
if(k + dist*(2*mn + cdist*nn) <= 0) dist = cdist;
if(k + cdist*(2*mn + cdist*nn) <= 0) dist = cdist;
else if(c <= 0) return false;
}
else if(offset > dd)