Core: header cleanup, split realmlist, boost compatibility, cotire, remove stormlib/zlib and stormlib/bzip2 and instead use dep sources
This commit is contained in:
1 parent
7fff6c424f
commit
5ff847159c
1243 files changed
+29780
-36517
No files matched your search
@@ -15,11 +15,13 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "Common.h"
|
||||
#include "GroupMgr.h"
|
||||
#include "InstanceSaveMgr.h"
|
||||
#include "World.h"
|
||||
#include "Common.h"
|
||||
#include "DatabaseEnv.h"
|
||||
#include "DBCStores.h"
|
||||
#include "InstanceSaveMgr.h"
|
||||
#include "Log.h"
|
||||
#include "World.h"
|
||||
|
||||
GroupMgr::GroupMgr()
|
||||
{
|
||||
@@ -39,7 +41,7 @@ uint32 GroupMgr::GenerateNewGroupDbStoreId()
|
||||
|
||||
for (uint32 i = ++NextGroupDbStoreId; i < 0xFFFFFFFF; ++i)
|
||||
{
|
||||
if ((i < GroupDbStore.size() && GroupDbStore[i] == NULL) || i >= GroupDbStore.size())
|
||||
if ((i < GroupDbStore.size() && GroupDbStore[i] == nullptr) || i >= GroupDbStore.size())
|
||||
{
|
||||
NextGroupDbStoreId = i;
|
||||
break;
|
||||
@@ -71,7 +73,7 @@ void GroupMgr::FreeGroupDbStoreId(Group* group)
|
||||
if (storageId < NextGroupDbStoreId)
|
||||
NextGroupDbStoreId = storageId;
|
||||
|
||||
GroupDbStore[storageId] = NULL;
|
||||
GroupDbStore[storageId] = nullptr;
|
||||
}
|
||||
|
||||
Group* GroupMgr::GetGroupByDbStoreId(uint32 storageId) const
|
||||
@@ -79,7 +81,7 @@ Group* GroupMgr::GetGroupByDbStoreId(uint32 storageId) const
|
||||
if (storageId < GroupDbStore.size())
|
||||
return GroupDbStore[storageId];
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ObjectGuid::LowType GroupMgr::GenerateGroupId()
|
||||
@@ -104,7 +106,7 @@ Group* GroupMgr::GetGroupByGUID(ObjectGuid::LowType groupId) const
|
||||
if (itr != GroupStore.end())
|
||||
return itr->second;
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void GroupMgr::AddGroup(Group* group)
|
||||
@@ -219,7 +221,7 @@ void GroupMgr::LoadGroups()
|
||||
{
|
||||
Field* fields = result->Fetch();
|
||||
Group* group = GetGroupByDbStoreId(fields[0].GetUInt32());
|
||||
// group will never be NULL (we have run consistency sql's before loading)
|
||||
// group will never be nullptr (we have run consistency sql's before loading)
|
||||
|
||||
MapEntry const* mapEntry = sMapStore.LookupEntry(fields[1].GetUInt16());
|
||||
if (!mapEntry || !mapEntry->IsDungeon())
|
||||
|
||||
Reference in new issue
Block a user