Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void LoadCustomFFA();
- + bool IsCustomFFA(uint32 areaid)
- + {
- + AreaTableEntry const* place = GetAreaEntryByAreaID(areaid);
- +
- + // map
- + CustomFFAMap::const_iterator itrmap = m_custom_ffa.find(place->mapid);
- + if(itrmap != m_custom_ffa.end())
- + if(itrmap->second == 1)
- + return true;
- +
- + // zone
- + CustomFFAMap::const_iterator itrzone = m_custom_ffa.find(place->zone ? place->zone : place->ID );
- + if(itrzone != m_custom_ffa.end())
- + if(itrzone->second == 2)
- + return true;
- +
- + // area
- + CustomFFAMap::const_iterator itrarea = m_custom_ffa.find(place->ID);
- + if(itrarea != m_custom_ffa.end())
- + if(itrarea->second == 3)
- + return true;
- +
- + return false;
- + }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement