mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 01:38:17 +08:00
[server] Add CTextDrawPool ctor/dtor
This commit is contained in:
1 parent
98a560e360
commit
ce2fc48592
3 files changed
+40
-1
No files matched your search
@@ -0,0 +1,30 @@
|
||||
|
||||
#include "main.h"
|
||||
|
||||
CTextDrawPool::CTextDrawPool()
|
||||
{
|
||||
for (WORD wText = 0; wText < MAX_TEXT_DRAWS; wText++)
|
||||
{
|
||||
field_0[wText] = 0;
|
||||
field_2000[wText] = 0;
|
||||
field_4000[wText] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
CTextDrawPool::~CTextDrawPool()
|
||||
{
|
||||
for (WORD wText = 0; wText < MAX_TEXT_DRAWS; wText++)
|
||||
{
|
||||
if(field_2000[wText])
|
||||
{
|
||||
free(field_2000[wText]);
|
||||
field_2000[wText] = NULL;
|
||||
}
|
||||
if(field_4000[wText])
|
||||
{
|
||||
free(field_4000[wText]);
|
||||
field_4000[wText] = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user