diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index b6146843..fc9e6f99 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -3515,3 +3515,8 @@ bool Room::IsPvpMasterRankModeRoom() { return rank_match_conf_ && rank_match_conf_->room_type == RoomType_MasterRank; } + +int Room::GetMaxTeamNum() +{ + return MAX_TEAM_NUM; +} diff --git a/server/gameserver/room.h b/server/gameserver/room.h index bed7a5d5..2193f261 100644 --- a/server/gameserver/room.h +++ b/server/gameserver/room.h @@ -272,6 +272,7 @@ public: bool MoveCanReach(const glm::vec3& start, const glm::vec3& end); const mt::RankMatchConf* GetRankMatchConf() { return rank_match_conf_; } bool IsCustomBattle() { return custom_battle_ != nullptr;} + int GetMaxTeamNum(); private: void ShuaAndroid();