diff options
author | Daniel Weipert <code@drogueronin.de> | 2021-02-10 23:53:06 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2021-02-10 23:53:06 +0100 |
commit | c62cf258a8ba1c8f40c69208a28a82c5afc71343 (patch) | |
tree | ec906ee025b59487d8ee3d8716dc8a59b68eea6d /Network/Lobby.gd | |
parent | e216bf93e77ceb42c8c5dc5e77ebff6e1968faa3 (diff) |
Adds GameOver screen
Diffstat (limited to 'Network/Lobby.gd')
-rw-r--r-- | Network/Lobby.gd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Network/Lobby.gd b/Network/Lobby.gd index b30bc1f..d192640 100644 --- a/Network/Lobby.gd +++ b/Network/Lobby.gd @@ -60,7 +60,11 @@ func _on_Host_pressed(): $Players.show() $Connect/Error.text = "" - $Players/IP.text = IP.get_local_addresses()[6] + for ip in IP.get_local_addresses(): + if ip.begins_with("192.168"): + $Players/IP.text = ip + break + var player_name = $Connect/Name.text Network.host_game(player_name) self.refresh_lobby() |