diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 0ca8d7ef..3b4a12bf 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -935,6 +935,9 @@ bool Room::CanJoin(const std::string& accountid, int init_map_id, const cs::CMJoin& msg) { + if (IsNewBieRoom()) { + return false; + } if (room_mode_ != self_room_mode) { return false; } @@ -3166,6 +3169,9 @@ size_t Room::GetRoomMaxPlayerNum() if (pve_instance) { return pve_human_num; } + if (IsNewBieRoom()) { + return 1; + } return map_meta_->player(); }