From 5781b7dad68c3e01d83365f73b0d35d9e5252f97 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Sun, 16 Jan 2022 17:14:36 +0100 Subject: control system --- scripts/load_map.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/load_map.gd') diff --git a/scripts/load_map.gd b/scripts/load_map.gd index 8130997..1e4405c 100644 --- a/scripts/load_map.gd +++ b/scripts/load_map.gd @@ -10,7 +10,7 @@ func _ready(): map_load() func fetch (): - var root = get_tree().root.get_child(0) + var root = get_tree().root.get_node("world") if _world == null: _world = root.get_node("world") if _path_holder == null: @@ -105,6 +105,8 @@ func map_load(): set_map_state(state) print("loaded") + _path_holder.refresh_path(false) + func _process(_delta): if Input.is_action_just_released("save"): -- cgit v1.2.3-54-g00ecf