修复GetJoinablRoom问题
This commit is contained in:
parent
a428f6ebc5
commit
7c94897a69
@ -31,6 +31,9 @@ static RoomType_e GetHumanRoomType(const cs::CMJoin& msg)
|
||||
}
|
||||
//游戏次数,吃鸡数,击杀数
|
||||
int game_times = a8::XValue(tmp_strings[0]);
|
||||
if (!f8::IsOnlineEnv()) {
|
||||
game_times = 0;
|
||||
}
|
||||
#if 0
|
||||
int win_times = a8::XValue(tmp_strings[1]);
|
||||
int kill_times = a8::XValue(tmp_strings[2]);
|
||||
@ -124,12 +127,12 @@ Room* RoomMgr::GetJoinableRoom(const cs::CMJoin& msg, const RoomType_e self_room
|
||||
}
|
||||
if (self_room_type == RT_NewBrid) {
|
||||
if (RoomNum() < ROOM_NUM_DOWN_LIMIT - 5) {
|
||||
return nullptr;
|
||||
return CreateRoom(self_room_type);
|
||||
}
|
||||
}
|
||||
if (self_room_type == RT_MidBrid) {
|
||||
if (RoomNum() < ROOM_NUM_DOWN_LIMIT - 5) {
|
||||
return nullptr;
|
||||
return CreateRoom(self_room_type);
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < RT_Max; ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user