aboutsummaryrefslogtreecommitdiff
path: root/scripts/load_map.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-16 17:14:36 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-16 17:14:36 +0100
commit5781b7dad68c3e01d83365f73b0d35d9e5252f97 (patch)
treedada65ab375ed8287b33e6ffe023f5df5e666d24 /scripts/load_map.gd
parent8e5358aaefa1df729ffc02047e53b62705d6b3b1 (diff)
control system
Diffstat (limited to 'scripts/load_map.gd')
-rw-r--r--scripts/load_map.gd4
1 files changed, 3 insertions, 1 deletions
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"):