|
|
|
@ -16,7 +16,7 @@ void BasePacket::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
|
|
|
|
|
|
|
|
|
if(send)
|
|
|
|
|
{
|
|
|
|
|
bs->Write((RakNet::MessageID) packetID);
|
|
|
|
|
bs->Write(packetID);
|
|
|
|
|
bs->Write(player->guid);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -66,7 +66,7 @@ void BasePacket::SetSendStream(RakNet::BitStream *bitStream)
|
|
|
|
|
void BasePacket::RequestData(RakNet::RakNetGUID player)
|
|
|
|
|
{
|
|
|
|
|
bsSend->ResetWritePointer();
|
|
|
|
|
bsSend->Write((RakNet::MessageID) packetID);
|
|
|
|
|
bsSend->Write(packetID);
|
|
|
|
|
bsSend->Write(player);
|
|
|
|
|
peer->Send(bsSend, HIGH_PRIORITY, RELIABLE_ORDERED, 0, player, false);
|
|
|
|
|
}
|
|
|
|
|