fixed bug where you can host twice
This commit is contained in:
@@ -47,8 +47,11 @@ func _process(delta):
|
||||
|
||||
func 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):
|
||||
if connect != 1:
|
||||
|
||||
Reference in New Issue
Block a user