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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user