Исправление.

W 0:00:01:527   The variable "tile" is declared below in the parent block.
<Ошибка GDScript>CONFUSABLE_LOCAL_DECLARATION
<Исходный код GDScript>tilemap.gd:567
This commit is contained in:
sasha80
2025-08-22 08:51:50 +03:00
parent fb7bd27ac3
commit ab8604c51c

View File

@@ -562,14 +562,15 @@ func get_tile(x: int, y: int, z: int) -> Tile:
var idx: int = xyz_to_idx(x, y, z)
var tile = null
var req: = get_node_or_null(NodePath(TILE_REQUEST_NAME % idx))
if req:
var tile = req.get_meta('tile')
tile = req.get_meta('tile')
if tile != null:
tile.t = now
return tile
var tile = _cache.get(idx)
tile = _cache.get(idx)
if tile:
tile.t = now
return tile