修复死亡结算问题
This commit is contained in:
parent
92d8dcbd95
commit
a2104aaf2f
@ -2006,12 +2006,22 @@ void Human::GenBattleReportData(a8::MutableXObject* params)
|
||||
std::sort(human_list.begin(), human_list.end(),
|
||||
[] (Human* a, Human* b )
|
||||
{
|
||||
if (a->real_dead && b->real_dead) {
|
||||
if (a->dead_frameno == b->dead_frameno) {
|
||||
return a->entity_uniid < b->entity_uniid;
|
||||
} else {
|
||||
return a->dead_frameno == 0 ||
|
||||
(b->dead_frameno != 0 && a->dead_frameno > b->dead_frameno);
|
||||
}
|
||||
} else {
|
||||
if (a->real_dead) {
|
||||
return false;
|
||||
}
|
||||
if (b->real_dead) {
|
||||
return true;
|
||||
}
|
||||
return a->entity_uniid < b->entity_uniid;
|
||||
}
|
||||
});
|
||||
rank = human_list.size();
|
||||
for (size_t i = 0; i < human_list.size(); ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user