2023-11-25 23:49:51 +08:00
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
CMenuPool::CMenuPool()
|
|
|
|
{
|
|
|
|
for (BYTE byteMenuID = 0; byteMenuID < MAX_MENUS; byteMenuID++)
|
|
|
|
{
|
|
|
|
field_200[byteMenuID] = 0;
|
|
|
|
field_0[byteMenuID] = 0;
|
|
|
|
}
|
2024-01-20 23:20:27 +08:00
|
|
|
for (PLAYERID playerId = 0; playerId < MAX_PLAYERS; playerId++)
|
2023-11-25 23:49:51 +08:00
|
|
|
{
|
2024-01-20 23:20:27 +08:00
|
|
|
field_400[playerId] = 255;
|
2023-11-25 23:49:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
CMenuPool::~CMenuPool()
|
|
|
|
{
|
|
|
|
for (BYTE byteMenuID = 0; byteMenuID < MAX_MENUS; byteMenuID++)
|
|
|
|
{
|
|
|
|
if (field_0[byteMenuID])
|
|
|
|
{
|
|
|
|
delete field_0[byteMenuID];
|
|
|
|
field_0[byteMenuID] = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|