summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-21 18:03:49 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-21 18:05:35 +0200
commiteb9f45cf055f9f9823eed3aeaefada74f6d07454 (patch)
tree490aba768d839b554451ac374d79ea4d836edf71 /play.js
parent7cf08432ae2084e7879a1fba0dc34834a6180c86 (diff)
downloadwashingtons-war-eb9f45cf055f9f9823eed3aeaefada74f6d07454.tar.gz
eslint fixes
Diffstat (limited to 'play.js')
-rw-r--r--play.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/play.js b/play.js
index 2a792f5..f601076 100644
--- a/play.js
+++ b/play.js
@@ -440,7 +440,6 @@ function get_army_xy_lerp(s1, s2) {
let dx = x2 - x1
let dy = y2 - y1
let n = Math.hypot(dx, dy)
- let a = Math.atan2(dy, dx)
x = lerp(x1, x2, 1/2)
y = lerp(y1, y2, 1/2)
@@ -798,7 +797,7 @@ function sub_general(_match, p1) {
return `<span class="tip" onclick="on_click_general_tip(${x})" onmouseenter="on_focus_general_tip(${x})" onmouseleave="on_blur_general_tip(${x})">${n}</span>`
}
-function sub_minus(match, p1) {
+function sub_minus(_match, p1) {
return "\u2212" + p1
}