[server] Implement/match CGangZonePool::Delete(...)

This commit is contained in:
RD42
2024-09-21 22:00:57 +08:00
parent 4c09be8e80
commit 5682b993ad
2 changed files with 10 additions and 0 deletions

View File

@ -25,3 +25,12 @@ WORD CGangZonePool::New(float fMinX, float fMinY, float fMaxX, float fMaxY)
m_bSlotState[wZone] = TRUE;
return wZone;
}
void CGangZonePool::Delete(WORD wZone)
{
m_bSlotState[wZone] = FALSE;
RakNet::BitStream bsParams;
bsParams.Write(wZone);
pNetGame->BroadcastData(RPC_ScrRemoveGangZone, &bsParams, INVALID_PLAYER_ID, 2);
}

View File

@ -13,6 +13,7 @@ public:
CGangZonePool();
~CGangZonePool() {};
WORD New(float fMinX, float fMinY, float fMaxX, float fMaxY);
void Delete(WORD wZone);
};
//----------------------------------------------------