mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 23:50:44 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user