diff options
author | tpart <tpart120@proton.me> | 2024-09-22 15:20:08 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-22 15:20:08 +0200 |
commit | d68f8d35f82e57f1e067aa9e13fd74cbbd0980c3 (patch) | |
tree | 0301d8c1b8049cd9c54e1a03a9ab6d332db3076d /client/menu/play.gd | |
parent | 7a1bd351b42e69b225e0938f232b36be2a23470c (diff) | |
download | hurrycurry-d68f8d35f82e57f1e067aa9e13fd74cbbd0980c3.tar hurrycurry-d68f8d35f82e57f1e067aa9e13fd74cbbd0980c3.tar.bz2 hurrycurry-d68f8d35f82e57f1e067aa9e13fd74cbbd0980c3.tar.zst |
Disable outdated servers in server list
Diffstat (limited to 'client/menu/play.gd')
-rw-r--r-- | client/menu/play.gd | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/menu/play.gd b/client/menu/play.gd index 0bd13669..65da0372 100644 --- a/client/menu/play.gd +++ b/client/menu/play.gd @@ -60,6 +60,8 @@ func _on_request_completed(result: int, _response_code: int, _headers: PackedStr b.text_overrun_behavior = TextServer.OVERRUN_TRIM_WORD_ELLIPSIS b.text = "%s (%d players)" % [i.name, i.players_online] # TODO: Implement fallback address correctly + if i.version[0] != Multiplayer.VERSION_MAJOR or i.version[1] > Multiplayer.VERSION_MINOR: + b.disabled = true b.pressed.connect(connect_to.bind(i.address[0])) server_list.add_child(b) |