Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
This commit is contained in:
commit
2ded11354d
20 files changed
+1287
-95
No files matched your search
@@ -37,14 +37,10 @@
|
||||
#include "WorldSession.h"
|
||||
#include "Opcodes.h"
|
||||
|
||||
extern GridState* si_GridStates[]; // debugging code, should be deleted some day
|
||||
|
||||
MapManager::MapManager()
|
||||
{
|
||||
i_gridCleanUpDelay = sWorld->getIntConfig(CONFIG_INTERVAL_GRIDCLEAN);
|
||||
i_timer.SetInterval(sWorld->getIntConfig(CONFIG_INTERVAL_MAPUPDATE));
|
||||
memset(i_GridStates, 0, sizeof(i_GridStates));
|
||||
i_GridStateErrorCount = 0;
|
||||
_nextInstanceId = 0;
|
||||
}
|
||||
|
||||
@@ -54,13 +50,6 @@ void MapManager::Initialize()
|
||||
{
|
||||
Map::InitStateMachine();
|
||||
|
||||
// debugging code, should be deleted some day
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_GRID_STATE; ++i)
|
||||
i_GridStates[i] = si_GridStates[i];
|
||||
|
||||
i_GridStateErrorCount = 0;
|
||||
}
|
||||
int num_threads(sWorld->getIntConfig(CONFIG_NUMTHREADS));
|
||||
// Start mtmaps if needed.
|
||||
if (num_threads > 0 && m_updater.activate(num_threads) == -1)
|
||||
@@ -73,31 +62,6 @@ void MapManager::InitializeVisibilityDistanceInfo()
|
||||
(*iter).second->InitVisibilityDistance();
|
||||
}
|
||||
|
||||
// debugging code, should be deleted some day
|
||||
void MapManager::checkAndCorrectGridStatesArray()
|
||||
{
|
||||
bool ok = true;
|
||||
for (int i=0; i<MAX_GRID_STATE; i++)
|
||||
{
|
||||
if (i_GridStates[i] != si_GridStates[i])
|
||||
{
|
||||
TC_LOG_ERROR("maps", "MapManager::checkGridStates(), GridState: si_GridStates is currupt !!!");
|
||||
ok = false;
|
||||
si_GridStates[i] = i_GridStates[i];
|
||||
}
|
||||
#ifdef TRINITY_DEBUG
|
||||
// inner class checking only when compiled with debug
|
||||
if (!si_GridStates[i]->checkMagic())
|
||||
{
|
||||
ok = false;
|
||||
si_GridStates[i]->setMagic();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
if (!ok)
|
||||
++i_GridStateErrorCount;
|
||||
}
|
||||
|
||||
Map* MapManager::CreateBaseMap(uint32 id)
|
||||
{
|
||||
Map* map = FindBaseMap(id);
|
||||
|
||||
Reference in new issue
Block a user