WIP: sprintf #21
@ -470,8 +470,7 @@ function level:recollide_reanchor()
|
|||||||
not self:mcoll(mx1,my0) and
|
not self:mcoll(mx1,my0) and
|
||||||
not self:mcoll(mx1,my1)
|
not self:mcoll(mx1,my1)
|
||||||
) then
|
) then
|
||||||
local key="GEOM"..mx0..","..my0..","..dx..","..dy
|
anch_new[fmt("GEOM%v,%v,%v,%v",mx0,my0,dx,dy)]= {
|
||||||
anch_new[key]= {
|
|
||||||
max(mx0,mx1),max(my0,my1),adx=-dx,ady=-dy
|
max(mx0,mx1),max(my0,my1),adx=-dx,ady=-dy
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
@ -479,10 +478,9 @@ function level:recollide_reanchor()
|
|||||||
end
|
end
|
||||||
|
|
||||||
for _,cr in pairs(self._crates) do
|
for _,cr in pairs(self._crates) do
|
||||||
local key="CRATE"..cr.id..","..dx..","..dy
|
|
||||||
local mx0,my0=cr.mx,cr.my
|
local mx0,my0=cr.mx,cr.my
|
||||||
local mx1,my1=mx0+dx,my0+dy
|
local mx1,my1=mx0+dx,my0+dy
|
||||||
anch_new[key]={
|
anch_new[fmt("CRATE%v,%v,%v",cr.id,dx,dy)]={
|
||||||
max(mx0,mx1),max(my0,my1),adx=-dx,ady=-dy
|
max(mx0,mx1),max(my0,my1),adx=-dx,ady=-dy
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user