This commit is contained in:
aozhiwei 2019-11-06 16:26:59 +08:00
parent b012e23bfa
commit a3c4164a72

View File

@ -2055,7 +2055,14 @@ void Human::GenBattleReportData(a8::MutableXObject* params)
break;
}
}
if (room->GetAliveTeamNum() == 1) {
std::set<Human*>* alive_team = room->GetAliveTeam();
if (alive_team == team_members) {
rank = 1;
}
}
}
stats.rank = rank;
params->SetVal("account_id", account_id);
params->SetVal("map_id", room->map_meta->i->map_id());
params->SetVal("map_name", room->map_meta->i->map_name());