Browse Source

Merge pull request #281 from MJ-meo-dmt/patch-1

Back to lobby section had naming error in the remote function at rpc_id call.
Rémi Verschelde 8 years ago
parent
commit
c1759941f6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tutorials/high_level_multiplayer.rst

+ 2 - 2
tutorials/high_level_multiplayer.rst

@@ -168,10 +168,10 @@ Let's get back to the lobby. Imagine that each player that connects to the serve
         # If I'm the server, let the new guy know about existing players
         if (get_tree().is_network_server()):
             # Send my info to new player
-            rpc_id(id, "register_info", 1, my_info)
+            rpc_id(id, "register_player", 1, my_info)
             # Send the info of existing players
             for peer_id in player_info:
-                rpc_id(id, "register_info", peer_id, players[peer_id])
+                rpc_id(id, "register_player", peer_id, players[peer_id])
 
         # Call function to update lobby UI here