Skip to content

Commit

Permalink
Fix - issue where invisible doors could be created with a point in th…
Browse files Browse the repository at this point in the history
…e top left when using wall > door across multiple walls or intersection
  • Loading branch information
Azmoria committed Feb 24, 2025
1 parent d4f4450 commit 92bddbf
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions Fog.js
Original file line number Diff line number Diff line change
Expand Up @@ -3365,26 +3365,23 @@ function drawing_mouseup(e) {
}

}

let data = ['line',
'wall',
window.DRAWCOLOR,
x1,
y1,
x2,
y2,
12,
window.CURRENT_SCENE_DATA.scale_factor*window.CURRENT_SCENE_DATA.conversion,
0,
window.wallBottom,
window.wallTop
];
window.DRAWINGS.push(data);
undoArray.push([...data]);

}


let data = ['line',
'wall',
window.DRAWCOLOR,
x1,
y1,
x2,
y2,
12,
window.CURRENT_SCENE_DATA.scale_factor*window.CURRENT_SCENE_DATA.conversion,
0,
window.wallBottom,
window.wallTop
];
window.DRAWINGS.push(data);
undoArray.push([...data]);

}
window.wallUndo.push({
Expand Down

0 comments on commit 92bddbf

Please sign in to comment.