1
This commit is contained in:
commit
8f0f61e0f1
@ -1675,7 +1675,11 @@ void Human::SendGameOver()
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
SendMsgSelfAndOb(msg);
|
||||
if (room->IsGameOver()) {
|
||||
SendMsgSelfAndOb(msg);
|
||||
} else {
|
||||
SendNotifyMsg(msg);
|
||||
}
|
||||
#ifdef MYDEBUG
|
||||
if (IsPlayer()) {
|
||||
a8::XPrintf("SMGameOver:%s\n", {f8::PbToJson(&msg)});
|
||||
@ -1687,7 +1691,7 @@ void Human::SendGameOver()
|
||||
SendPersonalBattleReport();
|
||||
sent_personal_report_ = true;
|
||||
}
|
||||
if (GetTeam()->team_rank && GetTeam()->HasPlayer()) {
|
||||
if (GetTeam()->team_rank && GetTeam()->HasPlayer() && !GetTeam()->IsViewTeam()) {
|
||||
if (!GetTeam()->sending_battlereport) {
|
||||
GetTeam()->sending_battlereport = true;
|
||||
GetTeam()->SendTeamBattleReport(this);
|
||||
@ -1700,7 +1704,11 @@ void Human::SendGameOver()
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
SendMsgSelfAndOb(msg);
|
||||
if (room->IsGameOver()) {
|
||||
SendMsgSelfAndOb(msg);
|
||||
} else {
|
||||
SendNotifyMsg(msg);
|
||||
}
|
||||
#ifdef MYDEBUG
|
||||
if (IsPlayer()) {
|
||||
a8::XPrintf("SMGameOver:%s\n", {f8::PbToJson(&msg)});
|
||||
|
Loading…
x
Reference in New Issue
Block a user