mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-21 21:17:25 +00:00
fix: joining lobby twice (#1374)
This commit is contained in:
parent
c708246f73
commit
4ecb6ae30e
@ -115,6 +115,7 @@ void ActivityComponent::HandleMessageBoxResponse(Entity* player, const std::stri
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ActivityComponent::PlayerJoin(Entity* player) {
|
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 we have a lobby, queue the player and allow others to join, otherwise spin up an instance on the spot
|
||||||
if (HasLobby()) {
|
if (HasLobby()) {
|
||||||
PlayerJoinLobby(player);
|
PlayerJoinLobby(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user