Fix a small "typo" regarding the calculation of LoS from the r9b1c565510 vmap-fix - fix by Gyullo, after being busy slapping himself for the mistake

--HG--
branch : trunk
This commit is contained in:
click
2010-06-17 22:28:16 +02:00
parent 7ef4418d51
commit 7fe641c99e

View File

@@ -156,7 +156,7 @@ namespace VMAP
if (maxDist < 1e-10f)
return true;
// direction with length of 1
G3D::Plane checkPlane = G3D::Plane(pos1, pos2, (pos2 - pos1));
G3D::Plane checkPlane = G3D::Plane((pos2 - pos1)/maxDist,pos1, pos2);
G3D::Ray ray = G3D::Ray::fromOriginAndDirection(pos1, (pos2 - pos1)/maxDist);
Vector3 checkFinite = ray.intersection(checkPlane);