1
This commit is contained in:
parent
339e8855a3
commit
b81e4006e8
@ -1972,6 +1972,14 @@ void Human::InternalSendGameOver()
|
|||||||
cs::SMGameOver msg;
|
cs::SMGameOver msg;
|
||||||
hum->FillSMGameOver(msg);
|
hum->FillSMGameOver(msg);
|
||||||
hum->SendNotifyMsg(msg);
|
hum->SendNotifyMsg(msg);
|
||||||
|
if (hum->socket_handle == 0) {
|
||||||
|
a8::UdpLog::Instance()->Error("battleReport socket_handle error room_uuid:%s account_id:%s nickname:%s ",
|
||||||
|
{
|
||||||
|
room_uuid,
|
||||||
|
hum->account_id,
|
||||||
|
hum->name
|
||||||
|
});
|
||||||
|
}
|
||||||
if (!hum->sent_game_end_ && hum->entity_subtype == EST_Player) {
|
if (!hum->sent_game_end_ && hum->entity_subtype == EST_Player) {
|
||||||
GameLog::Instance()->GameEnd((Player*)hum);
|
GameLog::Instance()->GameEnd((Player*)hum);
|
||||||
hum->sent_game_end_ = true;
|
hum->sent_game_end_ = true;
|
||||||
@ -1981,7 +1989,7 @@ void Human::InternalSendGameOver()
|
|||||||
};
|
};
|
||||||
auto on_error = [] (a8::XParams& param, const std::string& response)
|
auto on_error = [] (a8::XParams& param, const std::string& response)
|
||||||
{
|
{
|
||||||
a8::UdpLog::Instance()->Error("battleReport params: %s response: %s",
|
a8::UdpLog::Instance()->Error("battleReport http error params: %s response: %s",
|
||||||
{
|
{
|
||||||
param.param2,
|
param.param2,
|
||||||
response
|
response
|
||||||
|
Loading…
x
Reference in New Issue
Block a user