1
This commit is contained in:
parent
0cf71b1d25
commit
b79c4c972a
@ -947,6 +947,9 @@ bool Room::CanJoin(const std::string& accountid,
|
|||||||
int init_map_id,
|
int init_map_id,
|
||||||
const cs::CMJoin& msg)
|
const cs::CMJoin& msg)
|
||||||
{
|
{
|
||||||
|
if (lock_room_) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (IsNewBieRoom()) {
|
if (IsNewBieRoom()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -1008,6 +1011,9 @@ bool Room::CanJoin(const std::string& accountid,
|
|||||||
|
|
||||||
bool Room::CanJoin(class MatchTeam* team)
|
bool Room::CanJoin(class MatchTeam* team)
|
||||||
{
|
{
|
||||||
|
if (lock_room_) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (GetGasData().GetGasMode() != GasInactive) {
|
if (GetGasData().GetGasMode() != GasInactive) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -402,6 +402,7 @@ private:
|
|||||||
|
|
||||||
Team* victory_team_ = nullptr;
|
Team* victory_team_ = nullptr;
|
||||||
bool force_over_ = false;
|
bool force_over_ = false;
|
||||||
|
bool lock_room_ = false;
|
||||||
|
|
||||||
friend class Incubator;
|
friend class Incubator;
|
||||||
friend class Team;
|
friend class Team;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user