Commit current work

This is a temporary branch because I'm missing a USB drive, huehue
This commit is contained in:
Jérôme Leclercq
2017-01-25 15:55:07 +01:00
parent 311e2a545d
commit 9e3341a32a
10 changed files with 3063 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#include <Nazara/Network/ENetPacket.hpp>
#include <Nazara/Core/MemoryPool.hpp>
#include <Nazara/Network/Debug.hpp>
namespace Nz
{
/// Temporary
void ENetPacketRef::Reset(ENetPacket* packet = nullptr)
{
if (m_packet)
{
if (--m_packet->referenceCount == 0)
{
m_packet->owner->Delete(m_packet);
return;
}
}
m_packet = packet;
if (m_packet)
m_packet->referenceCount++;
}
}