From 7dc81353e39f8d5e61e3d494a91abb05c4707d86 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sat, 30 Dec 2023 21:55:24 -0800 Subject: [PATCH] fix: joining lobby twice --- dGame/dComponents/ActivityComponent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dGame/dComponents/ActivityComponent.cpp b/dGame/dComponents/ActivityComponent.cpp index 59637d59b..f4865a03c 100644 --- a/dGame/dComponents/ActivityComponent.cpp +++ b/dGame/dComponents/ActivityComponent.cpp @@ -115,6 +115,7 @@ void ActivityComponent::HandleMessageBoxResponse(Entity* player, const std::stri } void ActivityComponent::PlayerJoin(Entity* player) { + if (PlayerIsInQueue(player)) return; // If we have a lobby, queue the player and allow others to join, otherwise spin up an instance on the spot if (HasLobby()) { PlayerJoinLobby(player);