Ejemplo n.º 1
0
void MapManager::FreeInstanceId(uint32 instanceId)
{
    // If freed instance id is lower than the next id available for new instances, use the freed one instead
    if (instanceId < _nextInstanceId)
        SetNextInstanceId(instanceId);

    _instanceIds[instanceId] = false;
}
Ejemplo n.º 2
0
void MapManager::FreeInstanceId(uint32 instanceId)
{
    // If freed instance id is lower than the next id available for new instances, use the freed one instead
    if (instanceId < _nextInstanceId)
        SetNextInstanceId(instanceId);

    _instanceIds[instanceId] = false;
    sAchievementMgr->OnInstanceDestroyed(instanceId);

#ifdef ELUNA
    sEluna->FreeInstanceId(instanceId);
#endif
}