restart function only works if Game.can_pause == true (fixes #55)

This commit is contained in:
pennyrigate 2023-02-24 17:20:13 -05:00
parent 8cfe971e06
commit 58eae4a8f7
2 changed files with 1 additions and 2 deletions

View file

@ -168,7 +168,7 @@ func play_music(song):
func _physics_process(delta): func _physics_process(delta):
if Debug.entry == false: if Debug.entry == false:
# restart level # restart level
if Input.is_action_just_pressed("restart"): if Input.is_action_just_pressed("restart") && can_pause:
call_deferred("restart_level") call_deferred("restart_level")
#CRT FILTER #CRT FILTER
if Input.is_action_just_pressed("crt"): if Input.is_action_just_pressed("crt"):

View file

@ -192,7 +192,6 @@ position = Vector2( 48, 120 )
[node name="AnimatedSprite" parent="RollingFiend" index="0"] [node name="AnimatedSprite" parent="RollingFiend" index="0"]
visible = false visible = false
frame = 0
[node name="SawTest2" type="AnimatedSprite" parent="RollingFiend"] [node name="SawTest2" type="AnimatedSprite" parent="RollingFiend"]
material = SubResource( 4 ) material = SubResource( 4 )