mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-01-19 19:44:46 +00:00
🐛 drop inputs controller events when owner is not alive
This commit is contained in:
parent
3c8f5a91f0
commit
0052cc862c
|
|
@ -31,7 +31,7 @@ func _enter_tree() -> void:
|
|||
set_multiplayer_authority(1)
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
if is_multiplayer_authority():
|
||||
if is_multiplayer_authority() and owner.is_alive():
|
||||
var mouse_mode: Input.MouseMode = Input.get_mouse_mode()
|
||||
direction = Input.get_vector("left", "right", "forward", "backward")
|
||||
jetting = Input.is_action_pressed("secondary")
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue