修复组队结算问题

This commit is contained in:
aozhiwei 2019-06-26 11:14:08 +08:00
parent c75403bc0d
commit 10f768becf

View File

@ -587,6 +587,9 @@ void Human::FillSMGameOver(cs::SMGameOver& msg)
break;
}
}
if (!dead && GetAliveTeamNum() == 1) {
rank = 1;
}
msg.set_team_id(team_id);
msg.set_team_rank(rank);
@ -2029,7 +2032,7 @@ void Human::InternalSendGameOver()
on_error,
url.c_str(),
*params,
rand()
room->room_uuid
);
delete params;
sending_gameover_ = true;