diff --git a/saco/game/common.h b/saco/game/common.h index 0bafb11..d802d96 100644 --- a/saco/game/common.h +++ b/saco/game/common.h @@ -8,6 +8,7 @@ #define MAX_VEHICLES 2000 #define MAX_OBJECTS 1000 #define MAX_MENUS 128 +#define MAX_TEXT_DRAWS 2304 #define MAX_LABELS 2048 #define PLAYER_PED_SLOTS 210 diff --git a/saco/main.h b/saco/main.h index 7b005fd..cb8c960 100644 --- a/saco/main.h +++ b/saco/main.h @@ -37,6 +37,7 @@ typedef struct _GAME_SETTINGS { #include "net/pickuppool.h" #include "net/objectpool.h" #include "net/menupool.h" +#include "net/textdrawpool.h" #include "net/labelpool.h" #include "net/netgame.h" #include "net/scriptrpc.h" diff --git a/saco/net/netgame.cpp b/saco/net/netgame.cpp index b05bc33..f94c4a6 100644 --- a/saco/net/netgame.cpp +++ b/saco/net/netgame.cpp @@ -36,6 +36,7 @@ void CNetGame::InitPools() m_pPools->pObjectPool = new CObjectPool(); m_pPools->pMenuPool = new CMenuPool(); m_pPools->pLabelPool = new CLabelPool(); + m_pPools->pTextDrawPool = new CTextDrawPool(); 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 deca8a8..b0f0fce 100644 --- a/saco/net/netgame.h +++ b/saco/net/netgame.h @@ -33,7 +33,7 @@ typedef struct _NETGAME_POOLS { CActorPool *pActorPool; char _gap0[4]; CLabelPool *pLabelPool; - char _gap1[4]; + CTextDrawPool *pTextDrawPool; CMenuPool *pMenuPool; } NETGAME_POOLS; diff --git a/saco/net/textdrawpool.cpp b/saco/net/textdrawpool.cpp new file mode 100644 index 0000000..59e68e6 --- /dev/null +++ b/saco/net/textdrawpool.cpp @@ -0,0 +1,19 @@ + +#include "../main.h" + +BOOL unnamed_100B2AF0(); + +//---------------------------------------------------- + +CTextDrawPool::CTextDrawPool() +{ + int x=0; + while(x!=MAX_TEXT_DRAWS) { + field_2400[x] = 0; + field_0[x] = 0; + x++; + } + unnamed_100B2AF0(); +} + +//---------------------------------------------------- diff --git a/saco/net/textdrawpool.h b/saco/net/textdrawpool.h new file mode 100644 index 0000000..6a89a0a --- /dev/null +++ b/saco/net/textdrawpool.h @@ -0,0 +1,15 @@ + +#pragma once + +//---------------------------------------------------- + +class CTextDrawPool +{ +private: + int field_0[MAX_TEXT_DRAWS]; + int field_2400[MAX_TEXT_DRAWS]; +public: + CTextDrawPool(); +}; + +//---------------------------------------------------- diff --git a/saco/saco.vcproj b/saco/saco.vcproj index ddc90da..0f3faaa 100644 --- a/saco/saco.vcproj +++ b/saco/saco.vcproj @@ -315,6 +315,12 @@ + + + +