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); SendNotifyMsg(msg);
} else { } else {
CalcStats(); CalcStats();
if (!GetTeam()->sending_battlereport) { if (stats->team_statsed) {
GetTeam()->sending_battlereport = true; if (!GetTeam()->sending_battlereport) {
GetTeam()->SendTeamBattleReport(this); 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 class PlayerStats
{ {
public: public:
bool team_statsed = false;
int kills = 0; int kills = 0;
long long last_kill_frameno = 0; long long last_kill_frameno = 0;
int damage_amount_in = 0; int damage_amount_in = 0;