1
This commit is contained in:
parent
54d68fefda
commit
c7e6bb1bdd
@ -935,6 +935,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 (IsNewBieRoom()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (room_mode_ != self_room_mode) {
|
if (room_mode_ != self_room_mode) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -3166,6 +3169,9 @@ size_t Room::GetRoomMaxPlayerNum()
|
|||||||
if (pve_instance) {
|
if (pve_instance) {
|
||||||
return pve_human_num;
|
return pve_human_num;
|
||||||
}
|
}
|
||||||
|
if (IsNewBieRoom()) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return map_meta_->player();
|
return map_meta_->player();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user