fix units not being controlled when off screen

This commit is contained in:
Teatov 2024-10-13 20:53:21 +10:00
parent d89c177521
commit 18ca7c6c09

View File

@ -45,8 +45,6 @@ func _physics_process(delta: float) -> void:
func _input(event: InputEvent) -> void:
super._input(event)
if not _is_on_screen:
return
if event is InputEventMouseButton and _selected:
var button_event := event as InputEventMouseButton