|
|
|
@ -723,16 +723,15 @@ void plNetLinkingMgr::OfferLinkToPlayer( const plAgeLinkStruct * inInfo, uint32_
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
plNetClientMgr* mgr = plNetClientMgr::GetInstance(); |
|
|
|
|
plNetTransport& transport = mgr->TransportMgr(); |
|
|
|
|
int guestIdx = transport.FindMember(playerID); |
|
|
|
|
plNetTransportMember* guestMem = transport.GetMember(guestIdx); // -1 ?
|
|
|
|
|
|
|
|
|
|
if (guestMem) { |
|
|
|
|
plLinkToAgeMsg* linkM = new plLinkToAgeMsg(inInfo); |
|
|
|
|
linkM->AddReceiver(mgr->GetKey()); |
|
|
|
|
|
|
|
|
|
plKey host = mgr->GetLocalPlayerKey(); |
|
|
|
|
|
|
|
|
|
plNetTransport &transport = mgr->TransportMgr(); |
|
|
|
|
int guestIdx = transport.FindMember(playerID); |
|
|
|
|
plNetTransportMember *guestMem = transport.GetMember(guestIdx); // -1 ?
|
|
|
|
|
if(guestMem) |
|
|
|
|
{ |
|
|
|
|
plKey guest = guestMem->GetAvatarKey(); |
|
|
|
|
plAvatarMgr::OfferLinkingBook(host, guest, linkM, host); |
|
|
|
|
} |
|
|
|
|