diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index e1a2b1d..c83ae52 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -147,14 +147,6 @@ int RoomMgr::OverRoomNum() Room* RoomMgr::GetJoinableRoom(const cs::CMJoin& msg, const RoomType_e self_room_type) { - #if 0 - for (auto& pair : inactive_room_hash_) { - if (pair.second->CanJoin(msg.account_id(), self_room_type)) { - return pair.second; - } - } - return nullptr; - #else std::vector> group_rooms; for (int i = 0; i < RT_Max; ++i) { group_rooms.push_back(std::vector()); @@ -191,7 +183,6 @@ Room* RoomMgr::GetJoinableRoom(const cs::CMJoin& msg, const RoomType_e self_room } } return nullptr; - #endif } Room* RoomMgr::GetRoomByUuid(long long room_uuid)