This commit is contained in:
aozhiwei 2023-05-19 13:06:30 +08:00
parent 0cf71b1d25
commit b79c4c972a
2 changed files with 7 additions and 0 deletions

View File

@ -947,6 +947,9 @@ bool Room::CanJoin(const std::string& accountid,
int init_map_id,
const cs::CMJoin& msg)
{
if (lock_room_) {
return false;
}
if (IsNewBieRoom()) {
return false;
}
@ -1008,6 +1011,9 @@ bool Room::CanJoin(const std::string& accountid,
bool Room::CanJoin(class MatchTeam* team)
{
if (lock_room_) {
return false;
}
if (GetGasData().GetGasMode() != GasInactive) {
return false;
}

View File

@ -402,6 +402,7 @@ private:
Team* victory_team_ = nullptr;
bool force_over_ = false;
bool lock_room_ = false;
friend class Incubator;
friend class Team;