Remapped JumpUp/JumpDown controls, replaced and/or/not, fixed typo in previous commit

This commit is contained in:
Maruno17
2021-04-25 16:38:47 +01:00
parent a42b66db68
commit 484813c592
22 changed files with 137 additions and 139 deletions

View File

@@ -582,7 +582,7 @@ def pbTurnTowardEvent(event,otherEvent)
end
sx += (event.width - otherEvent.width) / 2.0
sy -= (event.height - otherEvent.height) / 2.0
return if sx == 0 and sy == 0
return if sx == 0 && sy == 0
if sx.abs > sy.abs
(sx > 0) ? event.turn_left : event.turn_right
else