1
This commit is contained in:
parent
c233771ea3
commit
bb417717a0
@ -1464,7 +1464,6 @@ void Human::SendUpdateMsg()
|
|||||||
|
|
||||||
void Human::SendGameOver()
|
void Human::SendGameOver()
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
if (GetTeam()->HasPlayer()) {
|
if (GetTeam()->HasPlayer()) {
|
||||||
if (GetTeam()->already_report_battle) {
|
if (GetTeam()->already_report_battle) {
|
||||||
cs::SMGameOver msg;
|
cs::SMGameOver msg;
|
||||||
@ -1490,29 +1489,6 @@ void Human::SendGameOver()
|
|||||||
is_game_end_ = true;
|
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)
|
void Human::SendDebugMsg(const std::string& debug_msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user