Fix gauntlet_manager indentation and scope
This commit is contained in:
@@ -503,6 +503,7 @@ func _spawn_mission_tiles() -> void:
|
|||||||
# Goal items: Heart(7), Diamond(8), Star(9), Coin(10)
|
# Goal items: Heart(7), Diamond(8), Star(9), Coin(10)
|
||||||
var goal_items = [7, 8, 9, 10]
|
var goal_items = [7, 8, 9, 10]
|
||||||
var tiles_spawned: int = 0
|
var tiles_spawned: int = 0
|
||||||
|
var main = get_node_or_null("/root/Main")
|
||||||
|
|
||||||
for x in range(ARENA_COLUMNS):
|
for x in range(ARENA_COLUMNS):
|
||||||
for z in range(ARENA_ROWS):
|
for z in range(ARENA_ROWS):
|
||||||
@@ -535,7 +536,6 @@ func _spawn_mission_tiles() -> void:
|
|||||||
tiles_spawned += 1
|
tiles_spawned += 1
|
||||||
|
|
||||||
# Sync to clients
|
# Sync to clients
|
||||||
var main = get_node("/root/Main")
|
|
||||||
if main:
|
if main:
|
||||||
main.rpc("sync_grid_item", x, 1, z, tile_type)
|
main.rpc("sync_grid_item", x, 1, z, tile_type)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user