Skip to content

Commit

Permalink
Improve unit deslection on teardown to emit valid units only
Browse files Browse the repository at this point in the history
  • Loading branch information
Scony committed Aug 20, 2023
1 parent 2b0c5b2 commit 37d9124
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/match/units/traits/Selection.gd
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@ func _ready():
return
MatchSignals.deselect_all_units.connect(deselect)
_unit.input_event.connect(_on_input_event)
_unit.tree_exiting.connect(deselect)
_circle.hide()


func _exit_tree():
deselect()


func select():
if _selected:
return
Expand Down

0 comments on commit 37d9124

Please sign in to comment.