renamed variabels

This commit is contained in:
Jocke
2016-03-11 11:55:16 +01:00
parent 7febb7681c
commit 2eb863757b
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ public:
Packet(MessageType type); Packet(MessageType type);
~Packet(); ~Packet();
void Init(MessageType type, unsigned int& packetID, void Init(MessageType type, unsigned int& packetID,
int sequenceNumber, int totalAmountOfPackets, int groupIndex, int groupSize,
int packetGroup); int packetGroup);
// Add primitive types like int, float, char... // Add primitive types like int, float, char...
+3 -3
View File
@@ -36,7 +36,7 @@ Packet::~Packet()
} }
void Packet::Init(MessageType type, unsigned int & packetID, void Packet::Init(MessageType type, unsigned int & packetID,
int groupIndex, int packetGroupSize, int packetGroup) int groupIndex, int groupSize, int group)
{ {
m_ReturnDataOffset = 0; m_ReturnDataOffset = 0;
m_Offset = 0; m_Offset = 0;
@@ -46,13 +46,13 @@ void Packet::Init(MessageType type, unsigned int & packetID,
WritePrimitive<int>(0); WritePrimitive<int>(0);
// packetGroup is the gorup the packet is in // packetGroup is the gorup the packet is in
groupOffset = m_Offset; groupOffset = m_Offset;
WritePrimitive<int>(packetGroup); WritePrimitive<int>(group);
// What index the packet has in the packetGroup // What index the packet has in the packetGroup
groupIndexOffset = m_Offset; groupIndexOffset = m_Offset;
WritePrimitive(groupIndex); WritePrimitive(groupIndex);
// The total amount of packets in a packetGroup // The total amount of packets in a packetGroup
groupSizeOffset = m_Offset; groupSizeOffset = m_Offset;
WritePrimitive(packetGroupSize); WritePrimitive(groupSize);
// Add message type // Add message type
int messageType = static_cast<int>(type); int messageType = static_cast<int>(type);
messageTypeOffset = m_Offset; messageTypeOffset = m_Offset;