Skip to content

Commit

Permalink
The map scene will no longer be deleted if its parent scene is root (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Biosquid authored Oct 16, 2024
1 parent 9447600 commit 723a266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/MapUI.gd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var current_player_room: RoomUI
var light_overlay: LightOverlay

func _input(_inputevent: InputEvent) -> void:
if (_inputevent.is_action_pressed("cancel_action")):
if (_inputevent.is_action_pressed("cancel_action") and get_parent() != get_tree().root):
queue_free()


Expand Down

0 comments on commit 723a266

Please sign in to comment.