diff --git a/saco/net/netgame.cpp b/saco/net/netgame.cpp index a83969d..45cf3c0 100644 --- a/saco/net/netgame.cpp +++ b/saco/net/netgame.cpp @@ -294,3 +294,12 @@ void CNetGame::ResetTextDrawPool() delete m_pPools->pTextDrawPool; m_pPools->pTextDrawPool = new CTextDrawPool(); } + +//---------------------------------------------------- + +// MATCH +void CNetGame::ResetObjectPool() +{ + delete m_pPools->pObjectPool; + m_pPools->pObjectPool = new CObjectPool(); +} diff --git a/saco/net/netgame.h b/saco/net/netgame.h index cd88ca9..fa51096 100644 --- a/saco/net/netgame.h +++ b/saco/net/netgame.h @@ -112,6 +112,7 @@ public: void ResetPlayerPool(); // .text:10008FE0 void ResetVehiclePool(); // .text:10009080 void ResetTextDrawPool(); // .text:10009110 + void ResetObjectPool(); // .text:100091B0 void ResetGangZonePool(); // .text:10009250 void ResetPickupPool(); // .text:100092F0 void ResetMenuPool(); // .text:10009350 diff --git a/saco/net/objectpool.cpp b/saco/net/objectpool.cpp index e851fcc..1c2ddac 100644 --- a/saco/net/objectpool.cpp +++ b/saco/net/objectpool.cpp @@ -10,3 +10,18 @@ CObjectPool::CObjectPool() } field_0 = 0; }; + +//---------------------------------------------------- + +CObjectPool::~CObjectPool() +{ + for(int i = 0; i < MAX_OBJECTS; i++) + FUNC_10012850(i); +} + +//---------------------------------------------------- + +void CObjectPool::FUNC_10012850(int iObject) +{ + // TODO: CObjectPool::FUNC_10012850() .text:10012850 +} diff --git a/saco/net/objectpool.h b/saco/net/objectpool.h index f392347..4bc6e32 100644 --- a/saco/net/objectpool.h +++ b/saco/net/objectpool.h @@ -30,6 +30,9 @@ public: char FUNC_10012DE0(VECTOR *vecStart, VECTOR *vecEnd); // .text:10012DE0 CObjectPool(); + ~CObjectPool(); // .text:10013160 + + void FUNC_10012850(int iObject); // .text:10012850 void FUNC_10012A50(); // .text:10012A50 void FUNC_10012B10(); // .text:10012B10