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