From bdb707fb2d79f1e1c8bf139de536ef3cf82b862b Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 7 Nov 2023 09:54:01 -0500 Subject: fixed endpoint thing again --- app/assets/javascripts/wittle/trace2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/assets/javascripts') diff --git a/app/assets/javascripts/wittle/trace2.js b/app/assets/javascripts/wittle/trace2.js index a3ef343..e36e4bd 100644 --- a/app/assets/javascripts/wittle/trace2.js +++ b/app/assets/javascripts/wittle/trace2.js @@ -68,7 +68,7 @@ class BoundingBox { var cell1 = data.puzzle.getCell(data.pos.x, data.pos.y) var cell2 = data.puzzle.getSymmetricalCell(data.pos.x, data.pos.y) - if (cell1.end !== cell2.end) { + if ((cell1.end == null) != (cell2.end == null)) { var cell = {'end': 'none'} } else if (this.sym !== true) { var cell = cell1 -- cgit 1.4.1