forked from pyrex/chameleonic
Fix can_move constants to remove path dependence
This commit is contained in:
parent
812d619cc7
commit
a1f9617842
@ -531,7 +531,7 @@ function level:get_latch(dx,dy,px,py)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ropecheck=split"-0.8,0.4,0.2"
|
ropecheck=split"-0.6,0.4,0.4"
|
||||||
|
|
||||||
function level:can_move(
|
function level:can_move(
|
||||||
is_player,
|
is_player,
|
||||||
@ -544,8 +544,8 @@ function level:can_move(
|
|||||||
if (self:mcoll(mx1,my1) or player.x==mx1 and player.y==my1) return false
|
if (self:mcoll(mx1,my1) or player.x==mx1 and player.y==my1) return false
|
||||||
|
|
||||||
if player.rope then
|
if player.rope then
|
||||||
local w,h=1.6,0.2
|
local w,h=1.2,0.2
|
||||||
if (dmx==0) w,h=0.2,1.6
|
if (dmx==0) w,h=0.2,1.2
|
||||||
if (player.rope:collide_mrect(mx0+ropecheck[dmx+2],my0+ropecheck[dmy+2],w,h,exclude_src,exclude_dst)) return false
|
if (player.rope:collide_mrect(mx0+ropecheck[dmx+2],my0+ropecheck[dmy+2],w,h,exclude_src,exclude_dst)) return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user