mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 06:09:46 +03:00
[WebSocket] Fix peers handling in multiplayer example.
Disconnected peers were not properly removed from the local peers list.
This commit is contained in:
@@ -64,7 +64,7 @@ func do_action(action):
|
||||
var pos = _players.find(id)
|
||||
if pos == -1:
|
||||
return
|
||||
_players.erase(pos)
|
||||
_players.remove_at(pos)
|
||||
_list.remove_item(pos)
|
||||
if _turn > pos:
|
||||
_turn -= 1
|
||||
|
||||
Reference in New Issue
Block a user