From 02b01be9f508a18e12a504b3900943ffa8fa371a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 4 Jun 2023 09:58:25 +0800 Subject: [PATCH] 1 --- server/gameserver/roommgr.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index 24aba4fd..ead49eff 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -35,7 +35,7 @@ const int ROOM_NUM_UP_LIMIT = 1000; const int HUM_NUM_DOWN_LIMIT = 2500; -static RoomType_e GetHumanRoomType(const cs::CMJoin& msg, int& game_times) +static RoomType_e GetHumanRoomType(const std::shared_ptr netdata) { return RoomType_OldBrid1; } @@ -117,7 +117,7 @@ void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg) return; } int game_times = 0; - RoomType_e self_room_type = GetHumanRoomType(msg, game_times); + RoomType_e self_room_type = GetHumanRoomType(results.at(0)); if (self_room_type < RoomType_OldBrid1) { self_room_type = RoomType_OldBrid1; } @@ -861,7 +861,7 @@ void RoomMgr::EnterNewBie(f8::MsgHdr& hdr, const cs::CMJoin& msg) } int game_times = 0; - RoomType_e self_room_type = GetHumanRoomType(msg, game_times); + RoomType_e self_room_type = GetHumanRoomType(context); if (self_room_type < RoomType_OldBrid1) { self_room_type = RoomType_OldBrid1; }