This commit is contained in:
aozhiwei 2020-07-30 15:31:31 +08:00
parent 33bf201aed
commit 3960c50dc5

View File

@ -1118,7 +1118,7 @@ bool Room::GenSmallCircle(a8::Vec2 big_circle_pos, float big_circle_rad, float s
void Room::MatchTeam(Human* hum)
{
if (!hum->team_uuid.empty()) {
if (!hum->team_uuid.empty() && GetRoomMode() != kZombieMode) {
for (auto& pair : human_hash_) {
if (pair.second != hum) {
if (!hum->team_uuid.empty() && pair.second->team_uuid == hum->team_uuid) {
@ -1146,6 +1146,9 @@ void Room::MatchTeam(Human* hum)
void Room::CombineTeam()
{
if (GetRoomMode() != kChiJiMode) {
return;
}
std::map<int, size_t> need_combine_teams;
std::map<int, size_t> need_combine_teams_copy;