From bd61ccf43f614752e691ed8ebe04de9348fcf879 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 26 May 2020 17:04:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=89=8B=E9=98=9F=E4=BC=8D=E5=90=88?= =?UTF-8?q?=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/room.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 5bc690e..cb60946 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -1015,6 +1015,14 @@ void Room::CombineTeam() std::map need_combine_teams; std::map need_combine_teams_copy; + if (room_type == RT_MidBrid) { + for (auto& pair : accountid_hash_) { + Human* hum = pair.second; + hum->auto_fill = true; + hum->team_uuid = a8::XValue(room_uuid).GetString(); + } + } + int first_team_id = 0; int total_count = 0; for (auto& pair : team_hash_) {