Skip to content

Commit

Permalink
Merge branch 'feature/issue-189-elevation-path' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
caewok committed Aug 31, 2024
2 parents 83eaae8 + cb118d3 commit 511ee6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pathfinding/WallTracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export class WallTracerEdge extends GraphEdge {
* Tested "live" and not cached so door or wall orientation changes need not be tracked.
* @param {Wall} wall Wall to test
* @param {Point} origin Measure wall blocking from perspective of this origin point.
* @param {number} [elevation=0] Elevation of the point or origin to test.
* @param {number} [elevation=0] Elevation of the point or origin to test, in pixel units.
* @returns {boolean}
*/
static wallBlocks(wall, origin, elevation = 0) {
Expand All @@ -379,7 +379,7 @@ export class WallTracerEdge extends GraphEdge {
&& side === wall.document.dir ) return false;

// Test for wall height.
if ( !elevation.between(wall.bottomZ, wall.topZ) ) return false;
if ( !elevation.between(wall.bottomZ, wall.topZ, false) ) return false;

return true;
}
Expand Down

0 comments on commit 511ee6f

Please sign in to comment.