Skip to content

Commit

Permalink
fix: joining lobby twice (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC authored Dec 31, 2023
1 parent c708246 commit 4ecb6ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dGame/dComponents/ActivityComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4ecb6ae

Please sign in to comment.