fix click crash in NAT

This commit is contained in:
2022-07-05 01:30:00 +00:00
parent 736276456d
commit 4190887156

View File

@@ -95,7 +95,8 @@
selectWidth (- x2 x1)
selectHeight (- y2 y1)
rectangle (new FlxRect x1 y1 selectWidth selectHeight)]
(mouseDragSprite.drawRect x1 y1 selectWidth selectHeight FlxColor.TRANSPARENT (object color FlxColor.LIME))
(when (< 0 (+ selectWidth selectHeight))
(mouseDragSprite.drawRect x1 y1 selectWidth selectHeight FlxColor.TRANSPARENT (object color FlxColor.LIME)))
// Handle entry selection
(entryGroup.forEach ->entrySprite
(let [overlaps (rectangle.overlaps (entrySprite.getScreenBounds))]