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

This commit is contained in:
RD42 committed 2024-09-21 22:00:57 +08:00
1 parent 4c09be8e80
commit 5682b993ad
2 files changed
+10

No files matched your search

+9
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);
}
+1
View File
@@ -13,6 +13,7 @@ public:
CGangZonePool();
~CGangZonePool() {};
WORD New(float fMinX, float fMinY, float fMaxX, float fMaxY);
void Delete(WORD wZone);
};
//----------------------------------------------------