1
This commit is contained in:
parent
a2a3d4f87b
commit
0989bcc023
@ -231,9 +231,6 @@ void Team::SendTeamBattleReport(Human* sender)
|
||||
if (room->GetBattleStartFrameNo() <= 0) {
|
||||
return;
|
||||
}
|
||||
if (room->GetCustomBattle()) {
|
||||
return;
|
||||
}
|
||||
std::shared_ptr<a8::MutableXObject> post_data = a8::MutableXObject::CreateObject();
|
||||
GenBattleReportData(player, post_data.get());
|
||||
std::string url;
|
||||
@ -250,6 +247,18 @@ void Team::SendTeamBattleReport(Human* sender)
|
||||
|
||||
std::string room_uuid = room->GetRoomUuid();
|
||||
int team_id = GetTeamId();
|
||||
if (room->GetCustomBattle()) {
|
||||
already_report_battle = true;
|
||||
sending_battlereport = false;
|
||||
TraverseMembers
|
||||
(
|
||||
[] (Human* hum)
|
||||
{
|
||||
hum->SendGameOver();
|
||||
return true;
|
||||
});
|
||||
return;
|
||||
}
|
||||
HttpProxy::Instance()->HttpGet
|
||||
(
|
||||
[room_uuid, team_id]
|
||||
|
Loading…
x
Reference in New Issue
Block a user