fixed username duplication glitch

main
Jan Heemstra 2021-09-26 00:44:07 +02:00
parent e67ab9131c
commit b11a503970
1 changed files with 0 additions and 2 deletions

View File

@ -315,8 +315,6 @@ func create_player(pid: int, is_local:= false, respawn:= false) -> void:
if not respawn: # first spawn
new_info = PlayerInfo.new() # generate name, color etc
new_info.name = $GUI.settings["username"]
new_info.color = $GUI.settings["player color"]
else: # respawn
new_info = player_list.players[pid] # reuse previous name, color etc
new_info.health = 100 # give the respawned player full health