This commit is contained in:
aozhiwei 2020-07-08 15:41:05 +08:00
parent a01843a6a0
commit 497d34ddfe

View File

@ -64,6 +64,18 @@ static RoomType_e GetHumanRoomType(const cs::CMJoin& msg)
break;
}
}
if (!msg.team_uuid().empty()) {
bool has_mid_brid = false;
for (auto& team_member : msg.team_members()) {
if (team_member.game_times() >= 1 && team_member.game_times() <= 4) {
has_mid_brid = true;
break;
}
}
if (has_mid_brid) {
return RT_MidBrid;
}
}
return RT_OldBrid;
}