Show message whether avatar report was successful.
This commit is contained in:
@@ -923,6 +923,24 @@ AbstractClientStateReceiving::HandlePacket(boost::shared_ptr<ClientThread> clien
|
||||
client->SetUnknownAvatar(requestId);
|
||||
}
|
||||
}
|
||||
else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_reportAvatarAckMessage)
|
||||
{
|
||||
ReportAvatarAckMessage_t *netReportAck = &tmpPacket->GetMsg()->choice.reportAvatarAckMessage;
|
||||
unsigned msgCode;
|
||||
switch (netReportAck->reportResult)
|
||||
{
|
||||
case reportResult_avatarReportAccepted:
|
||||
msgCode = MSG_NET_AVATAR_REPORT_ACCEPTED;
|
||||
break;
|
||||
case reportResult_avatarReportDuplicate:
|
||||
msgCode = MSG_NET_AVATAR_REPORT_DUP;
|
||||
break;
|
||||
default:
|
||||
msgCode = MSG_NET_AVATAR_REPORT_REJECTED;
|
||||
break;
|
||||
}
|
||||
client->GetCallback().SignalNetClientMsgBox(msgCode);
|
||||
}
|
||||
else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_statisticsMessage)
|
||||
{
|
||||
StatisticsMessage_t *netStatistics = &tmpPacket->GetMsg()->choice.statisticsMessage;
|
||||
|
||||
@@ -152,5 +152,12 @@
|
||||
#define MSG_NET_GAME_SERVER_CARDS_DELAY MSG_SOCK_LIMIT_CONNECT + 12
|
||||
#define MSG_NET_GAME_SERVER_END MSG_SOCK_LIMIT_CONNECT + 13
|
||||
|
||||
#define MSG_NET_LIMIT_GAME MSG_NET_GAME_SERVER_END
|
||||
|
||||
// Some messages which are displayed in the GUI
|
||||
#define MSG_NET_AVATAR_REPORT_ACCEPTED MSG_NET_LIMIT_GAME + 1
|
||||
#define MSG_NET_AVATAR_REPORT_DUP MSG_NET_LIMIT_GAME + 2
|
||||
#define MSG_NET_AVATAR_REPORT_REJECTED MSG_NET_LIMIT_GAME + 3
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user