From d0e6217c12332529b1773d555a033375168fbc66 Mon Sep 17 00:00:00 2001 From: Mateus Elias Date: Tue, 7 Jan 2025 08:07:14 -0300 Subject: [PATCH] Fix the "Example lobby implementation" section of the High-level multiplayer tutorial Correct both the GDScript and C# code examples in the "Example lobby implementation" section of the Networking/High-level multiplayer tutorial. --- tutorials/networking/high_level_multiplayer.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tutorials/networking/high_level_multiplayer.rst b/tutorials/networking/high_level_multiplayer.rst index a850f5710..0a46b754e 100644 --- a/tutorials/networking/high_level_multiplayer.rst +++ b/tutorials/networking/high_level_multiplayer.rst @@ -415,6 +415,7 @@ have loaded the game scene. func remove_multiplayer_peer(): multiplayer.multiplayer_peer = null + players.clear() # When the server decides to start the game from a UI scene, @@ -550,6 +551,7 @@ have loaded the game scene. private void RemoveMultiplayerPeer() { Multiplayer.MultiplayerPeer = null; + _players.Clear(); } // When the server decides to start the game from a UI scene,