|
|
@ -47,7 +47,8 @@ inline void AddPacket(mwmp::PlayerPacketController::packets_t *packets, RakNet::
|
|
|
|
{
|
|
|
|
{
|
|
|
|
T *packet = new T(peer);
|
|
|
|
T *packet = new T(peer);
|
|
|
|
typedef mwmp::PlayerPacketController::packets_t::value_type value_t;
|
|
|
|
typedef mwmp::PlayerPacketController::packets_t::value_type value_t;
|
|
|
|
packets->insert(value_t(packet->GetPacketID(), value_t::second_type(std::move(packet))));
|
|
|
|
unsigned char packetId = packet->GetPacketID();
|
|
|
|
|
|
|
|
packets->insert(value_t(packetId, value_t::second_type(std::move(packet))));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
mwmp::PlayerPacketController::PlayerPacketController(RakNet::RakPeerInterface *peer)
|
|
|
|
mwmp::PlayerPacketController::PlayerPacketController(RakNet::RakPeerInterface *peer)
|
|
|
|