summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/play.js b/play.js
index 3d7e1bc..91e2638 100644
--- a/play.js
+++ b/play.js
@@ -592,11 +592,11 @@ function layout_general_count(g, s) {
return n
}
-function layout_general_offset_elim(g, s) {
+function layout_general_offset_elim(g) {
let n = 0
let p = get_cylinder_power(g)
for (let i of all_power_generals[p])
- if (i > g && view.pos[i] === s)
+ if (i > g && view.pos[i] === ELIMINATED)
++n
return n
}