no level restart/select shenanagins during the grand marathon

This commit is contained in:
Haze Weathers 2024-03-05 18:46:37 -05:00
parent d06acf2522
commit 3e3b327f5e
4 changed files with 19 additions and 3 deletions

View file

@ -41,7 +41,7 @@ func _physics_process(delta):
pause.lore_entries = lore_entries
get_parent().add_child(pause)
# restart level
if Input.is_action_just_pressed("restart"):
if Input.is_action_just_pressed("restart") and not Game.marathon_mode:
Game.call_deferred("restart_level")
if Game.keys == 50 && Game.shards == 5: