Skip to content

Commit 0749ab3

Browse files
committed
dont push from held
1 parent b596639 commit 0749ab3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@
360360
if (a == held.obj) return
361361

362362
for (let a2 of nearby(a)) {
363+
if (a2 == held.obj) continue
363364
let dx = a.x - a2.x, dy = a.y - a2.y
364365
let d = dist(dx, dy)
365366
let f = lerp(1000, 0, min(d / a.target_dist, 1))

0 commit comments

Comments
 (0)