assert(_used_rect.get_area() >= 0)
This commit is contained in:
@@ -16,7 +16,7 @@ func _init(map: TileMap):
|
||||
_used_rect = map.get_used_rect()
|
||||
|
||||
# assert stuff here because the extension's assertions just crash without a message
|
||||
assert(_used_rect.get_area() > 0)
|
||||
assert(_used_rect.get_area() >= 0)
|
||||
|
||||
_astar = MultilevelAStarEx.new()
|
||||
_astar.init(_used_rect)
|
||||
|
||||
@@ -79,7 +79,7 @@ void MultilevelAStarEx::init(const Rect2i ®ion)
|
||||
{
|
||||
DEV_ASSERT(!_init);
|
||||
|
||||
DEV_ASSERT(region.get_area() > 0);
|
||||
DEV_ASSERT(region.get_area() >= 0);
|
||||
|
||||
_region = region;
|
||||
_width = region.get_size().width;
|
||||
|
||||
Reference in New Issue
Block a user