1 Commits

Author SHA1 Message Date
8445f5a944 fixed bug where you can host twice 2025-08-21 20:51:11 -05:00

View File

@@ -47,8 +47,11 @@ func _process(delta):
func create_lobby(): func create_lobby():
print("[HOST] 1. Attempting to create lobby...") print("[HOST] 1. Attempting to create lobby...")
Steam.createLobby(Steam.LOBBY_TYPE_FRIENDS_ONLY, 4)
if lobby_id == 0:
Steam.createLobby(Steam.LOBBY_TYPE_FRIENDS_ONLY, 4)
else:
print("Cant host, already in a lobby")
func _on_lobby_created(connect: int, this_lobby_id: int): func _on_lobby_created(connect: int, this_lobby_id: int):
if connect != 1: if connect != 1: