Fixed multiplayer crash bug and properly reset player color on return to menu
This commit is contained in:
parent
10066090b1
commit
62eef907d3
4 changed files with 9 additions and 12 deletions
|
|
@ -13,7 +13,7 @@ func close_enet_server() -> void:
|
|||
|
||||
|
||||
func disconnect_all() -> void:
|
||||
close_enet_server()
|
||||
#close_enet_server()
|
||||
close_enet_client()
|
||||
stop_webrtc()
|
||||
|
||||
|
|
@ -62,11 +62,6 @@ func close_enet_client() -> void:
|
|||
if multiplayer.multiplayer_peer is ENetMultiplayerPeer:
|
||||
multiplayer.multiplayer_peer.close()
|
||||
|
||||
func lan_mode() -> void:
|
||||
pass
|
||||
|
||||
func online_mode() -> void:
|
||||
pass
|
||||
|
||||
func offline_mode() -> void:
|
||||
GameData.peer_id = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue