diff --git a/saco/main.h b/saco/main.h index cb8c960..fa776ee 100644 --- a/saco/main.h +++ b/saco/main.h @@ -36,6 +36,7 @@ typedef struct _GAME_SETTINGS { #include "net/vehiclepool.h" #include "net/pickuppool.h" #include "net/objectpool.h" +#include "net/gangzonepool.h" #include "net/menupool.h" #include "net/textdrawpool.h" #include "net/labelpool.h" diff --git a/saco/net/gangzonepool.cpp b/saco/net/gangzonepool.cpp new file mode 100644 index 0000000..cdce044 --- /dev/null +++ b/saco/net/gangzonepool.cpp @@ -0,0 +1,14 @@ + +#include "../main.h" + +//---------------------------------------------------- + +CGangZonePool::CGangZonePool() +{ + for (WORD i = 0; i < 1024; i++) + { + field_0[i] = 0; + field_1000[i] = 0; + } +} + diff --git a/saco/net/gangzonepool.h b/saco/net/gangzonepool.h new file mode 100644 index 0000000..75692e6 --- /dev/null +++ b/saco/net/gangzonepool.h @@ -0,0 +1,13 @@ + +#pragma once + +class CGangZonePool +{ +private: + int field_0[1024]; + int field_1000[1024]; +public: + CGangZonePool(); +}; + +//---------------------------------------------------- diff --git a/saco/net/netgame.cpp b/saco/net/netgame.cpp index 755b2f0..3bf5ece 100644 --- a/saco/net/netgame.cpp +++ b/saco/net/netgame.cpp @@ -39,6 +39,7 @@ void CNetGame::InitPools() m_pPools->pMenuPool = new CMenuPool(); m_pPools->pLabelPool = new CLabelPool(); m_pPools->pTextDrawPool = new CTextDrawPool(); + m_pPools->pGangZonePool = new CGangZonePool(); m_pPools->pPlayerPool = new CPlayerPool(); m_pPools->pVehiclePool = new CVehiclePool(); m_pPools->pPickupPool = new CPickupPool(); diff --git a/saco/net/netgame.h b/saco/net/netgame.h index b0f0fce..8da107a 100644 --- a/saco/net/netgame.h +++ b/saco/net/netgame.h @@ -31,7 +31,7 @@ typedef struct _NETGAME_POOLS { CPickupPool *pPickupPool; CObjectPool *pObjectPool; CActorPool *pActorPool; - char _gap0[4]; + CGangZonePool *pGangZonePool; CLabelPool *pLabelPool; CTextDrawPool *pTextDrawPool; CMenuPool *pMenuPool; diff --git a/saco/saco.vcproj b/saco/saco.vcproj index 0f3faaa..153b943 100644 --- a/saco/saco.vcproj +++ b/saco/saco.vcproj @@ -261,6 +261,12 @@ + + + +