Core/Maps: Removed MapInstanced - no longer neccessary for grid data reference counting (moved to TerrainInfo)
This commit is contained in:
1 parent
f879d95589
commit
81b2ff0d94
33 files changed
+538
-764
No files matched your search
@@ -59,6 +59,7 @@
|
||||
#include "LootItemStorage.h"
|
||||
#include "LootMgr.h"
|
||||
#include "M2Stores.h"
|
||||
#include "Map.h"
|
||||
#include "MapManager.h"
|
||||
#include "Metric.h"
|
||||
#include "MMapFactory.h"
|
||||
@@ -2346,19 +2347,6 @@ void World::SetInitialWorldSettings()
|
||||
TC_LOG_INFO("server.loading", "Calculate next currency reset time...");
|
||||
InitCurrencyResetTime();
|
||||
|
||||
// Preload all cells, if required for the base maps
|
||||
if (sWorld->getBoolConfig(CONFIG_BASEMAP_LOAD_GRIDS))
|
||||
{
|
||||
sMapMgr->DoForAllMaps([](Map* map)
|
||||
{
|
||||
if (!map->Instanceable())
|
||||
{
|
||||
TC_LOG_INFO("server.loading", "Pre-loading base map data for map %u", map->GetId());
|
||||
map->LoadAllCells();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
uint32 startupDuration = GetMSTimeDiffToNow(startupBegin);
|
||||
|
||||
TC_LOG_INFO("server.worldserver", "World initialized in %u minutes %u seconds", (startupDuration / 60000), ((startupDuration % 60000) / 1000));
|
||||
|
||||
Reference in new issue
Block a user