dtPathCorridor::optimizePathVisibility

Attempts to optimize the path if the specified point is visible from the current position.