From d06d16c59df75cfb8db2db13d82d9911652415cd Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 30 May 2020 22:14:32 +0800 Subject: [PATCH] 1 --- server/gameserver/roommgr.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index c77f293..1a124d5 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -31,11 +31,12 @@ static RoomType_e GetHumanRoomType(const cs::CMJoin& msg) //游戏次数,吃鸡数,击杀数 int game_times = a8::XValue(tmp_strings[0]); if (!f8::IsOnlineEnv()) { - #if 1 - game_times = 0; - #endif - if (!msg.team_uuid().empty()) { - game_times = 1; + int channel = f8::ExtractChannelIdFromAccountId(msg.account_id()); + if (channel == 6000) { + game_times = 0; + if (!msg.team_uuid().empty()) { + game_times = 1; + } } } #if 0