Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ function lineIntersects(rayOrigin, direction, mirror) {
return { p: false, dist: Infinity, dir: direction }
}

function undo() {
function undo() { // skipcq: JS-0128
lastItem = opticsHistory.pop()
if (lastItem instanceof Laser)
lights.pop()
Expand All @@ -412,7 +412,7 @@ function undo() {
updateSim()
}

function clearAll() {
function clearAll() { // skipcq: JS-0128
opticsHistory = []
lights = []
rays = []
Expand All @@ -430,4 +430,4 @@ function vSub(v1, v2) {

function length(vector) {
return Math.sqrt(vector[0] ** 2 + vector[1] ** 2)
}
}