File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ you can run the server headless
2323There's a very limited cli. Server can be stopped by entering "stop", "quit" or "exit".
2424
2525## Todo list
26- - 1 or 2 bugfixes
2726- updaterate
2827- shoot bullet
2928- movingbody and rigidbody not networked yet
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ func spawn_players_on_client(data):
5151func free_player_on_client (id ):
5252 if get_node ("/root/main/players" ).has_node (str (id )):
5353 print ("freeplayer(" + str (id ) + ")" )
54- get_node ("/root/main/players" ).get_node (str (id )). queue_free ( )
54+ get_node ("/root/main/players" ).remove_child ( get_node ("/root/main/players" ). get_node ( str (id )))
5555
5656
5757@rpc ("call_remote" , "unreliable_ordered" )
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ func free_player(id):
183183 print ("free_player(" + str (id ) + ")" )
184184 # call free_player_on_client on all clients via server_to_client rpc
185185 $ server_to_client .free_player_on_client .rpc (id )
186- get_node ("/root/main/players" ).get_node (str (id )). queue_free ( )
186+ get_node ("/root/main/players" ).remove_child ( get_node ("/root/main/players" ). get_node ( str (id )))
187187
188188 # remove from table
189189 var grid : GridContainer = get_node ("../ui/table/GridContainer" )
You can’t perform that action at this time.
0 commit comments