forked from unfa/liblast
fixed username duplication glitch
parent
e67ab9131c
commit
b11a503970
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue