This commit is contained in:
aozhiwei 2023-03-21 20:23:58 +08:00
parent 0c5927d3a0
commit 5146211e4e

View File

@ -856,6 +856,10 @@ void Human::FillMFTeamData(Human* hum, cs::MFTeamData* team_data, bool is_game_o
void Human::FillSMGameOver(cs::SMGameOver& msg)
{
if (GetTeam()->already_report_battle) {
msg.mutable_settlement_new()->set_settlement_status(1);
return;
}
int alive_team_num = room->GetAliveTeamNum();
if (stats.victory) {
@ -1338,7 +1342,13 @@ void Human::SendGameOver()
{
#if 1
if (GetTeam()->HasPlayer()) {
SendTeamBattleReport();
if (GetTeam()->already_report_battle) {
cs::SMGameOver msg;
FillSMGameOver(msg);
SendNotifyMsg(msg);
} else {
SendTeamBattleReport();
}
}
if (IsEntitySubType(EST_Player)) {
if (!is_game_end_) {