This commit is contained in:
aozhiwei 2023-03-22 13:39:08 +08:00
parent b086b5219c
commit 7c44186ea3
2 changed files with 10 additions and 3 deletions

View File

@ -1396,9 +1396,15 @@ void Human::SendGameOver()
SendNotifyMsg(msg);
} else {
CalcStats();
if (!GetTeam()->sending_battlereport) {
GetTeam()->sending_battlereport = true;
GetTeam()->SendTeamBattleReport(this);
if (stats->team_statsed) {
if (!GetTeam()->sending_battlereport) {
GetTeam()->sending_battlereport = true;
GetTeam()->SendTeamBattleReport(this);
}
} else {
cs::SMGameOver msg;
FillSMGameOver(msg);
SendNotifyMsg(msg);
}
}
}

View File

@ -58,6 +58,7 @@ class Human;
class PlayerStats
{
public:
bool team_statsed = false;
int kills = 0;
long long last_kill_frameno = 0;
int damage_amount_in = 0;