Browse Source

Merge pull request #25847 from MidZik/master

Docs: Clarified TileMap get_cell method behavior.
Chris Bradfield 6 years ago
parent
commit
a18ceb6a30
1 changed files with 2 additions and 2 deletions
  1. 2 2
      doc/classes/TileMap.xml

+ 2 - 2
doc/classes/TileMap.xml

@@ -34,7 +34,7 @@
 			<argument index="1" name="y" type="int">
 			</argument>
 			<description>
-				Returns the tile index of the given cell.
+				Returns the tile index of the given cell. If no tile exists in the cell, returns [constant INVALID_CELL].
 			</description>
 		</method>
 		<method name="get_cell_autotile_coord" qualifiers="const">
@@ -53,7 +53,7 @@
 			<argument index="0" name="position" type="Vector2">
 			</argument>
 			<description>
-				Returns the tile index of the cell given by a Vector2.
+				Returns the tile index of the cell given by a Vector2. If no tile exists in the cell, returns [constant INVALID_CELL].
 			</description>
 		</method>
 		<method name="get_collision_layer_bit" qualifiers="const">