Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2023-08-27 00:42:24 +08:00
25 changed files with 339 additions and 219 deletions

View File

@@ -176,13 +176,7 @@ namespace VMAP
// direction with length of 1
G3D::Ray ray = G3D::Ray::fromOriginAndDirection(pos1, (pos2 - pos1) / maxDist);
if (GetIntersectionTime(ray, maxDist, true, ignoreFlags))
{
return false;
}
return true;
return !GetIntersectionTime(ray, maxDist, true, ignoreFlags);
}
//=========================================================
/**