mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-08-25 23:56:50 +02:00
@@ -90,7 +90,7 @@ CPools::MakeSureSlotInObjectPoolIsEmpty(int32 slot)
|
|||||||
// relocate to another slot??
|
// relocate to another slot??
|
||||||
CObject *newObject = new CObject(object->GetModelIndex(), false);
|
CObject *newObject = new CObject(object->GetModelIndex(), false);
|
||||||
CWorld::Remove(object);
|
CWorld::Remove(object);
|
||||||
#ifdef FIX_BUGS
|
#if 0 // todo better
|
||||||
*newObject = *object;
|
*newObject = *object;
|
||||||
#else
|
#else
|
||||||
memcpy(newObject, object, ms_pObjectPool->GetMaxEntrySize());
|
memcpy(newObject, object, ms_pObjectPool->GetMaxEntrySize());
|
||||||
|
@@ -1127,7 +1127,7 @@ CParticleObject::SaveParticle(uint8 *buffer, uint32 *length)
|
|||||||
|
|
||||||
for ( CParticleObject *p = pCloseListHead; p != NULL; p = p->m_pNext )
|
for ( CParticleObject *p = pCloseListHead; p != NULL; p = p->m_pNext )
|
||||||
{
|
{
|
||||||
#ifdef FIX_BUGS
|
#if 0 // todo better
|
||||||
*(CParticleObject*)buffer = *p;
|
*(CParticleObject*)buffer = *p;
|
||||||
#else
|
#else
|
||||||
memcpy(buffer, p, sizeof(CParticleObject));
|
memcpy(buffer, p, sizeof(CParticleObject));
|
||||||
@@ -1137,7 +1137,7 @@ CParticleObject::SaveParticle(uint8 *buffer, uint32 *length)
|
|||||||
|
|
||||||
for ( CParticleObject *p = pFarListHead; p != NULL; p = p->m_pNext )
|
for ( CParticleObject *p = pFarListHead; p != NULL; p = p->m_pNext )
|
||||||
{
|
{
|
||||||
#ifdef FIX_BUGS
|
#if 0 // todo better
|
||||||
*(CParticleObject*)buffer = *p;
|
*(CParticleObject*)buffer = *p;
|
||||||
#else
|
#else
|
||||||
memcpy(buffer, p, sizeof(CParticleObject));
|
memcpy(buffer, p, sizeof(CParticleObject));
|
||||||
|
Reference in New Issue
Block a user