From 58c91d39a052606091b0f22d75cc22db7142572b Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 11 Feb 2024 00:14:49 -0500 Subject: hopefully prevent joining closed lobbies --- racing/lobby.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'racing/lobby.gd') diff --git a/racing/lobby.gd b/racing/lobby.gd index d759046..36a90b6 100644 --- a/racing/lobby.gd +++ b/racing/lobby.gd @@ -118,6 +118,7 @@ func _request_lobby_list(): Steam.addRequestLobbyListStringFilter( "save_file", global.save_file.to_lower(), Steam.LOBBY_COMPARISON_EQUAL ) + Steam.addRequestLobbyListStringFilter("closed", "false", Steam.LOBBY_COMPARISON_EQUAL) Steam.requestLobbyList() @@ -152,6 +153,7 @@ func _on_lobby_created(result: int, lobby_id: int) -> void: _ignore = Steam.setLobbyData(lobby_id, "protocol_version", str(PROTOCOL_VERSION)) _ignore = Steam.setLobbyData(lobby_id, "save_file", global.save_file.to_lower()) _ignore = Steam.setLobbyData(lobby_id, "racing_vip", str(player_steam_id)) + _ignore = Steam.setLobbyData(lobby_id, "closed", "false") is_vip = true _request_lobby_list() @@ -304,6 +306,8 @@ func _main_button_pressed(): if everyone_ready and is_vip: get_node("Panel/main_button").disabled = true + var _ignore = Steam.setLobbyData(active_lobby_id, "closed", "true") + var route = router.choose_route() var start_pos = route[1] var end_pos = route[2] -- cgit 1.4.1