Fix incorrect blocked LOS-calculation on certain locations (by Lynx3d)
--HG-- branch : trunk
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user