Fixed multiply connections

This commit is contained in:
Jocke
2016-03-10 14:44:06 +01:00
parent a0d60160dd
commit 67dfbfff01
6 changed files with 79 additions and 13 deletions
+10 -2
View File
@@ -146,11 +146,19 @@ void Packet::ChangePacketID(unsigned int & packetID)
memcpy(m_Data + packetIDOffset, &packetID, sizeof(int));
}
void Packet::ChangeSequenceNumber(int groupIndex, int groupSize, int groupNumber)
void Packet::ChangeGroupIndex(int groupIndex)
{
memcpy(m_Data + groupIndexOffset, &groupIndex, sizeof(int));
}
void Packet::ChangeGroupSize(int groupSize)
{
memcpy(m_Data + groupSizeOffset, &groupSize, sizeof(int));
memcpy(m_Data + groupOffset, &groupNumber, sizeof(int));
}
void Packet::ChangeGroup(int group)
{
memcpy(m_Data + groupOffset, &group, sizeof(int));
}
MessageType Packet::GetMessageType()