fix level not loading when monitor is disabled

This commit is contained in:
Chris Cromer 2022-08-26 10:51:16 -04:00
parent bb0c4e302d
commit 0c8c3f6d1b
Signed by: cromer
GPG Key ID: FA91071797BEEEC2
2 changed files with 2 additions and 1 deletions

View File

@ -126,6 +126,7 @@ func _physics_process(_delta: float) -> void:
start_monitor() start_monitor()
else: else:
get_tree().paused = false get_tree().paused = false
emit_signal("monitor_loaded")
queue_free() queue_free()

View File

@ -6,9 +6,9 @@
[node name="Monitor" type="Node"] [node name="Monitor" type="Node"]
pause_mode = 2 pause_mode = 2
script = ExtResource( 1 ) script = ExtResource( 1 )
monitor_enabled = true
[node name="MonitorGUI" parent="." instance=ExtResource( 3 )] [node name="MonitorGUI" parent="." instance=ExtResource( 3 )]
visible = false visible = false
[node name="HTTPRequest" type="HTTPRequest" parent="."] [node name="HTTPRequest" type="HTTPRequest" parent="."]
pause_mode = 2