1
This commit is contained in:
parent
02b01be9f5
commit
c13a70f3e5
@ -280,24 +280,6 @@ Room* RoomMgr::GetJoinableRoom(const cs::CMJoin& msg,
|
||||
if (!group_rooms[self_room_type].empty()) {
|
||||
return group_rooms[self_room_type][rand() % group_rooms[self_room_type].size()];
|
||||
}
|
||||
if (self_room_type == RoomType_NewBrid) {
|
||||
return CreateRoom(msg,
|
||||
self_room_type,
|
||||
game_times,
|
||||
creator_register_time,
|
||||
proto_version,
|
||||
channel,
|
||||
msg.mapid());
|
||||
}
|
||||
if (self_room_type == RoomType_MidBrid) {
|
||||
return CreateRoom(msg,
|
||||
self_room_type,
|
||||
game_times,
|
||||
creator_register_time,
|
||||
proto_version,
|
||||
channel,
|
||||
msg.mapid());
|
||||
}
|
||||
for (int i = 0; i < RoomType_Max; ++i) {
|
||||
for (Room* room : group_rooms[i]) {
|
||||
if (room->GetRoomType() == self_room_type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user