fix edge-case where sprites could be dragged out of bounds through connection
This commit is contained in:
@@ -183,6 +183,16 @@ class KissExtendedSprite extends flixel.addons.display.FlxExtendedSprite {
|
||||
var nextPos = startPos.copyTo().addPoint(spriteTotalMovement);
|
||||
sprite.x = nextPos.x;
|
||||
sprite.y = nextPos.y;
|
||||
|
||||
if (sprite.boundsRect != null)
|
||||
{
|
||||
sprite.checkBoundsRect();
|
||||
}
|
||||
|
||||
if (sprite.boundsSprite != null)
|
||||
{
|
||||
sprite.checkBoundsSprite();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user