forked from interstellar_development/freeftf
M7 B2
Bug fixes and other fixes. Migration to Godot 4.3 (RC3)
This commit is contained in:
parent
6b6b539e81
commit
f3350a462a
50 changed files with 578 additions and 478 deletions
|
|
@ -29,7 +29,11 @@ func create_game():
|
|||
multiplayer.multiplayer_peer = peer
|
||||
|
||||
func _on_player_disconnected(id):
|
||||
if multiplayer.is_server():
|
||||
while multiplayer.is_server():
|
||||
for i in range(5000):
|
||||
if id in multiplayer.get_peers():
|
||||
break
|
||||
await get_tree().create_timer(0.001).timeout
|
||||
var room_name = player_associations[id]
|
||||
var player_list = create_player_list(room_name)
|
||||
if game_rooms.has(room_name) and game_rooms[room_name] == id:
|
||||
|
|
@ -41,6 +45,7 @@ func _on_player_disconnected(id):
|
|||
Client.rpc_id(p,"_on_player_disconnected",id)
|
||||
player_associations.erase(id)
|
||||
name_associations.erase(id)
|
||||
break
|
||||
|
||||
func _on_player_connected(id):
|
||||
if multiplayer.is_server():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue