diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index 6da4dae..6dff7af 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -17,7 +17,7 @@ #include "framework/cpp/httpclientpool.h" #include "framework/cpp/utils.h" -const int ROOM_NUM_DOWN_LIMIT = 20; +const int ROOM_NUM_DOWN_LIMIT = 5; const int ROOM_NUM_UP_LIMIT = 40; const int HUM_NUM_DOWN_LIMIT = 1000; @@ -28,6 +28,13 @@ static RoomType_e GetHumanRoomType(const cs::CMJoin& msg) if (tmp_strings.size() <= 3) { return RT_NewBrid; } + //游戏次数,吃鸡数,击杀数 + int game_times = a8::XValue(tmp_strings[0]); + int win_times = a8::XValue(tmp_strings[1]); + int kill_times = a8::XValue(tmp_strings[2]); + if (game_times <= MetaMgr::Instance()->newbie_game_times) { + return RT_NewBrid; + } return RT_OldBrid; }