summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--HexMap.gd3
1 files changed, 1 insertions, 2 deletions
diff --git a/HexMap.gd b/HexMap.gd
index e73a34a..c719b20 100644
--- a/HexMap.gd
+++ b/HexMap.gd
@@ -138,9 +138,8 @@ func _key(x : int, y : int) -> int:
# build the 6 adjacent Tiles of a Tile given by it's col;row coordinates
func adjacents_of(tile : Tile, tiles : Array) -> void:
- _build_adjacents(tile.coords)
tiles.clear()
- for t in adjacents: tiles.append(t)
+ for t in _build_adjacents(tile.coords): tiles.append(t)
func _build_adjacents(coords : Vector2) -> Array:
adjacents.clear()