[bot] Implement CNetGame::ResetPlayerPool()

This commit is contained in:
RD42 2024-06-01 18:35:59 +08:00
parent 9a61b24a2f
commit 67790e55f5
2 changed files with 11 additions and 0 deletions

View File

@ -448,6 +448,16 @@ void CNetGame::ResetVehiclePool()
//----------------------------------------------------
void CNetGame::ResetPlayerPool()
{
if(m_pPlayerPool) {
delete m_pPlayerPool;
}
m_pPlayerPool = new CPlayerPool();
}
//----------------------------------------------------
void CNetGame::sub_415EA0(PLAYERID playerId, BOOL a2)
{
if(playerId < MAX_PLAYERS)

View File

@ -75,6 +75,7 @@ public:
void Init(PCHAR szHostOrIp,int iPort,PCHAR szPlayerName,PCHAR szPass,PCHAR szNpcMode);
void Process();
void ResetVehiclePool();
void ResetPlayerPool();
void ShutdownForGameModeRestart();
void sub_415EA0(PLAYERID playerId, BOOL a2);