This commit is contained in:
aozhiwei 2023-04-06 10:26:53 +08:00
parent c233771ea3
commit bb417717a0

View File

@ -1464,7 +1464,6 @@ void Human::SendUpdateMsg()
void Human::SendGameOver()
{
#if 1
if (GetTeam()->HasPlayer()) {
if (GetTeam()->already_report_battle) {
cs::SMGameOver msg;
@ -1490,29 +1489,6 @@ void Human::SendGameOver()
is_game_end_ = true;
}
}
#else
if (IsEntitySubType(EST_Player)) {
if (already_report_battle_) {
cs::SMGameOver msg;
FillSMGameOver(msg);
SendNotifyMsg(msg);
#ifdef DEBUG
if (!f8::IsTestEnv()) {
a8::XPrintf("gameOver %s\n", {f8::PbToJson(&msg)});
}
#endif
} else {
if (!sending_battlereport_) {
sending_battlereport_ = true;
SendBattleReport();
}
if (!is_game_end_) {
GameLog::Instance()->GameEnd((Player*)this);
is_game_end_ = true;
}
}
}
#endif
}
void Human::SendDebugMsg(const std::string& debug_msg)