mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-03-09 15:30:36 +00:00
HOTFIX: Fix exiting multiplayer mode
This commit is contained in:
parent
58618d6b01
commit
2bd61aff8d
2 changed files with 1 additions and 4 deletions
|
|
@ -33,9 +33,6 @@ func _ready() -> void:
|
|||
func _unhandled_input(event : InputEvent) -> void:
|
||||
# escape key pressed
|
||||
if event.is_action_pressed(\"exit\"):
|
||||
# game modes cleanup
|
||||
if mode is Multiplayer:
|
||||
multiplayer.multiplayer_peer.close()
|
||||
# reset game mode
|
||||
mode = null
|
||||
# check for debug build
|
||||
|
|
|
|||
|
|
@ -130,4 +130,4 @@ func _on_flag_carrier_scoring_timer_timeout() -> void:
|
|||
func _exit_tree() -> void:
|
||||
if is_multiplayer_authority():
|
||||
multiplayer.peer_disconnected.disconnect(remove_player)
|
||||
multiplayer.multiplayer_peer = null
|
||||
multiplayer.multiplayer_peer = OfflineMultiplayerPeer.new()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue