This commit is contained in:
aozhiwei 2023-03-22 11:51:11 +08:00
parent fa15c63e36
commit 5f5496af41
2 changed files with 5 additions and 2 deletions

View File

@ -1394,9 +1394,12 @@ void Human::SendGameOver()
FillSMGameOver(msg);
SendNotifyMsg(msg);
} else {
if (!GetTeam()->sending_battlereport) {
GetTeam()->sending_battlereport = true;
GetTeam()->SendTeamBattleReport(this);
}
}
}
if (IsEntitySubType(EST_Player)) {
if (!is_game_end_) {
GameLog::Instance()->GameEnd((Player*)this);

View File

@ -177,5 +177,5 @@ bool Team::HasPlayer()
void Team::SendTeamBattleReport(Human* sender)
{
already_report_battle = true;
}