Skip to content

Commit

Permalink
Don't show pathfinder debug boxes
Browse files Browse the repository at this point in the history
Even with the debug channel on, fixes #426
  • Loading branch information
pvaiko committed Jan 8, 2022
1 parent 38083d5 commit a906b73
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions scripts/pathfinder/PathfinderUtil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,6 @@ function PathfinderUtil.CollisionDetector:findCollidingShapes(node, vehicleData,
'pathfinder colliding shapes %s with %s at x = %.1f, z = %.1f, (%.1fx%.1f), yRot = %d',
self.collidingShapesText, vehicleData.name, x, z, width, length, math.deg(yRot))
end
if CpDebug:isChannelActive(CpDebug.DBG_PATHFINDER) then
DebugUtil.drawOverlapBox(x, y, z, xRot, yRot, zRot, width, 1, length, 100, 0, 0)
end

return self.collidingShapes
end
Expand Down

0 comments on commit a906b73

Please sign in to comment.