添加房间类型判断
This commit is contained in:
parent
ac3b59e2ce
commit
f66e1ea989
@ -635,12 +635,12 @@ bool Room::CanJoin(const std::string& accountid, RoomType_e self_room_type)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (room_type == RT_NewBrid) {
|
if (room_type == RT_NewBrid) {
|
||||||
if (GetPlayerNum() > 0) {
|
if (room_type != self_room_type || GetPlayerNum() > 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (room_type == RT_MidBrid) {
|
if (room_type == RT_MidBrid) {
|
||||||
if (GetPlayerNum() > 4) {
|
if (room_type != self_room_type || GetPlayerNum() > 4) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user