diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index 751d3de4..bf2e33b3 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -141,7 +141,7 @@ void RoomMgr::_CMJoin(f8::MsgHdr* hdr, const cs::CMJoin& msg) return; } if (!msg.payload_data().empty()) { - _CMJoinCustomBattle(hdr, msg); + DispatchSpecRoom(hdr, msg); return; } std::shared_ptr join_msg = std::make_shared(); @@ -1153,6 +1153,11 @@ void RoomMgr::_CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg) } +void RoomMgr::DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg) +{ + +} + bool RoomMgr::HasTask() { return !room_hash_.empty(); diff --git a/server/gameserver/roommgr.h b/server/gameserver/roommgr.h index 55c91548..a00280ab 100644 --- a/server/gameserver/roommgr.h +++ b/server/gameserver/roommgr.h @@ -124,6 +124,7 @@ class RoomMgr : public a8::Singleton void _CMJoinMoba(f8::MsgHdr* hdr, const cs::CMJoin& msg); void SendGetCustomBattleData(std::shared_ptr join_msg, std::function)> cb); + void DispatchSpecRoom(f8::MsgHdr* hdr, const cs::CMJoin& msg); private: int current_room_idx_ = 0;