From 407bbdda20c6b45f05f8eebd27262e0b6c950a5c Mon Sep 17 00:00:00 2001 From: MisterMX Date: Wed, 28 Sep 2022 17:03:50 +0200 Subject: refactor(TileMap): Return Rect2i in get_used_rect Signed-off-by: MisterMX --- scene/2d/tile_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/2d/tile_map.h') diff --git a/scene/2d/tile_map.h b/scene/2d/tile_map.h index b1a2118c6b..902926291d 100644 --- a/scene/2d/tile_map.h +++ b/scene/2d/tile_map.h @@ -375,7 +375,7 @@ public: Vector2i get_neighbor_cell(const Vector2i &p_coords, TileSet::CellNeighbor p_cell_neighbor) const; TypedArray get_used_cells(int p_layer) const; - Rect2 get_used_rect(); // Not const because of cache + Rect2i get_used_rect(); // Not const because of cache // Override some methods of the CanvasItem class to pass the changes to the quadrants CanvasItems virtual void set_light_mask(int p_light_mask) override; -- cgit v1.2.3