1
This commit is contained in:
parent
da1c077ff9
commit
781245b42e
@ -855,7 +855,7 @@ void RoomMgr::_CMJoinCustomBattle(f8::MsgHdr& hdr, const cs::CMJoin& msg)
|
|||||||
auto ip_saddr = hdr.ip_saddr;
|
auto ip_saddr = hdr.ip_saddr;
|
||||||
auto socket_handle = hdr.socket_handle;
|
auto socket_handle = hdr.socket_handle;
|
||||||
auto cb =
|
auto cb =
|
||||||
[join_msg, socket_handle] (int errcode, const std::string errmsg, std::shared_ptr<CustomBattle> p)
|
[join_msg, ip_saddr, socket_handle] (int errcode, const std::string errmsg, std::shared_ptr<CustomBattle> p)
|
||||||
{
|
{
|
||||||
auto& msg = *join_msg;
|
auto& msg = *join_msg;
|
||||||
if (!errcode) {
|
if (!errcode) {
|
||||||
@ -906,7 +906,7 @@ void RoomMgr::_CMJoinCustomBattle(f8::MsgHdr& hdr, const cs::CMJoin& msg)
|
|||||||
hum->payload = member->GetNetData()->payload;
|
hum->payload = member->GetNetData()->payload;
|
||||||
PlayerMgr::Instance()->
|
PlayerMgr::Instance()->
|
||||||
CreatePlayerByCMJoin(hum,
|
CreatePlayerByCMJoin(hum,
|
||||||
0, //ip_saddr,
|
ip_saddr,
|
||||||
socket_handle,
|
socket_handle,
|
||||||
msg
|
msg
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user