Revert one broken golf attempt

This commit is contained in:
Pyrex 2022-12-23 17:33:06 -08:00
parent 9438597312
commit ad9d53887e

View File

@ -545,7 +545,12 @@ function level:can_move(
local chk=false local chk=false
local w,h=1.6,0.2 local w,h=1.6,0.2
if (dmx==0) w,h=0.2,1.6 if (dmx==0) w,h=0.2,1.6
rectx,recty=dmx*(0.4>>>dmx),dmy*(0.4>>>dmy)
local rectx,recty
if (dmy==-1) rectx,recty=0.4,-0.8
if (dmy==1) rectx,recty=0.4,0.2
if (dmx==-1) rectx,recty=-0.8,0.4
if (dmx==1) rectx,recty=0.2,0.4
if (player.rope:collide_mrect(mx0+rectx,my0+recty,w,h,exclude_src,exclude_dst)) return false if (player.rope:collide_mrect(mx0+rectx,my0+recty,w,h,exclude_src,exclude_dst)) return false
end end