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