Browse Source

Merge branch 'master' into feature-matchmaker

master
Luna 7 years ago
parent
commit
819b293878
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      scripts/lobby.gd

+ 2
- 1
scripts/lobby.gd View File

@ -79,7 +79,6 @@ func _ready():
port = o.get_value("-port") port = o.get_value("-port")
if o.get_value("-start-game"): if o.get_value("-start-game"):
my_info.start_game = true my_info.start_game = true
call_deferred("_client_init")
if o.get_value("-singleplayer"): if o.get_value("-singleplayer"):
call_deferred("_singleplayer_init") call_deferred("_singleplayer_init")
if o.get_value("-ai"): if o.get_value("-ai"):
@ -125,6 +124,8 @@ func _server_init():
get_node("JoinedGameLobby").show() get_node("JoinedGameLobby").show()
if server_playing: if server_playing:
player_info[1] = my_info player_info[1] = my_info
if "start_game" in my_info and my_info.start_game:
start_game()
func _matchmaker_init(): func _matchmaker_init():
matchmaking.run_matchmaker() matchmaking.run_matchmaker()


Loading…
Cancel
Save