添加房间类型判断

This commit is contained in:
aozhiwei 2020-05-26 16:45:12 +08:00
parent ac3b59e2ce
commit f66e1ea989

View File

@ -635,12 +635,12 @@ bool Room::CanJoin(const std::string& accountid, RoomType_e self_room_type)
return false;
}
if (room_type == RT_NewBrid) {
if (GetPlayerNum() > 0) {
if (room_type != self_room_type || GetPlayerNum() > 0) {
return false;
}
}
if (room_type == RT_MidBrid) {
if (GetPlayerNum() > 4) {
if (room_type != self_room_type || GetPlayerNum() > 4) {
return false;
}
}