Save a few more tokens by removing an assertion

This commit is contained in:
Pyrex 2022-12-23 16:09:57 -08:00
parent c480295b41
commit 9438597312

View File

@ -544,11 +544,7 @@ function level:can_move(
if player.rope then if player.rope then
local chk=false local chk=false
local w,h=1.6,0.2 local w,h=1.6,0.2
if dmx==0 then if (dmx==0) w,h=0.2,1.6
w,h=0.2,1.6
else
dmy = 0
end
rectx,recty=dmx*(0.4>>>dmx),dmy*(0.4>>>dmy) 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 if (player.rope:collide_mrect(mx0+rectx,my0+recty,w,h,exclude_src,exclude_dst)) return false