Fix yet another rope bug

This commit is contained in:
Pyrex 2022-12-18 16:50:19 -08:00
parent 5a0b8ab73d
commit e985c29e02

View File

@ -1381,7 +1381,7 @@ function rope:_tug(hypothetically)
for i=#ancs-1,2,-1 do
local ops_before_trash=self:_calc_push(ancs[i+1],ancs[i],ancs[i-1])
local ops_after_trash=self:_calc_push(ancs[i+1],ancs[i-1],ancs[i])
local ops_after_trash=self:_calc_push(ancs[i-2],ancs[i-1],ancs[i])
local ops_to_do={}
if #ops_before_trash>0 then
ops_to_do=ops_before_trash
@ -1496,6 +1496,7 @@ function rope:_calc_push(
an,a0,a1
)
local ops={}
if (an==nil) return ops
if a0.x==a1.x then
local y0,y1=_mnmx(a0.y,a1.y)