Fix incorrect blocked LOS-calculation on certain locations (by Lynx3d)

--HG--
branch : trunk
This commit is contained in:
click committed 2010-07-10 05:14:05 +02:00
1 parent 89ea8ccdf9
commit 478946284d
3 files changed
+29 -22

No files matched your search

@@ -57,8 +57,11 @@ namespace VMAP
Ray modRay(p, iInvRot * pRay.direction());
float distance = pMaxDist * iInvScale;
bool hit = iModel->IntersectRay(modRay, distance, pStopAtFirstHit);
distance *= iScale;
pMaxDist = distance;
if(hit)
{
distance *= iScale;
pMaxDist = distance;
}
return hit;
}