mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-07-18 17:38:12 +08:00
[server] Implement/match CGangZonePool::Delete(...)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
@ -13,6 +13,7 @@ public:
|
||||
CGangZonePool();
|
||||
~CGangZonePool() {};
|
||||
WORD New(float fMinX, float fMinY, float fMaxX, float fMaxY);
|
||||
void Delete(WORD wZone);
|
||||
};
|
||||
|
||||
//----------------------------------------------------
|
||||
|
Reference in New Issue
Block a user