diff --git a/chameleonic.p8 b/chameleonic.p8 index 5af73d7..570094f 100644 --- a/chameleonic.p8 +++ b/chameleonic.p8 @@ -544,11 +544,7 @@ function level:can_move( if player.rope then local chk=false local w,h=1.6,0.2 - if dmx==0 then - w,h=0.2,1.6 - else - dmy = 0 - end + if (dmx==0) w,h=0.2,1.6 rectx,recty=dmx*(0.4>>>dmx),dmy*(0.4>>>dmy) if (player.rope:collide_mrect(mx0+rectx,my0+recty,w,h,exclude_src,exclude_dst)) return false