forked from pyrex/chameleonic
Update to current project state #1
@ -677,8 +677,8 @@ function rope:drag(
|
||||
local anc=self:_anc(i())
|
||||
local busy=self:busy()
|
||||
|
||||
for x,y in self:_rastn(
|
||||
anc.x,anc.y,x,y,2,2
|
||||
for x,y in self:_rast(
|
||||
anc.x,anc.y,x,y
|
||||
) do
|
||||
local a=self:_anc(i())
|
||||
if not (_point_eq(a,{x=x,y=y})) then
|
||||
@ -799,8 +799,9 @@ function rope:_find_touched_anchors(i)
|
||||
|
||||
for bx,by in self:_rast(a0.x,a0.y,a2.x,a2.y) do
|
||||
local a1=level:point_anchor(bx,by)
|
||||
if a1!=nil and not _point_eq(a0,a1) and not _point_eq(a1,a2)
|
||||
and _linedist(a0,a1,a2) < 0.01
|
||||
if
|
||||
a1!=nil and not _point_eq(a0,a1) and not _point_eq(a1,a2)
|
||||
and _linedist(a0,a1,a2) == 0.0
|
||||
-- and self:_can_stretch(p,a2)
|
||||
then
|
||||
local id=self.id
|
||||
|
Loading…
Reference in New Issue
Block a user