Core/Maps: Move terrain data handling out of Map class

Partial port of cmangos/mangos-wotlk@ff5232c648
This commit is contained in:
Shauren
2022-07-23 19:13:33 +02:00
parent 82138bec18
commit 16a06346ae
32 changed files with 1945 additions and 1760 deletions

View File

@@ -48,6 +48,7 @@
#include "ScriptReloadMgr.h"
#include "SecretMgr.h"
#include "TCSoap.h"
#include "TerrainMgr.h"
#include "World.h"
#include "WorldSocket.h"
#include "WorldSocketMgr.h"
@@ -317,6 +318,7 @@ extern int main(int argc, char** argv)
sInstanceSaveMgr->Unload();
sOutdoorPvPMgr->Die(); // unload it before MapManager
sMapMgr->UnloadAll(); // unload all grids (including locked in memory)
sTerrainMgr.UnloadAll();
});
// Start the Remote Access port (acceptor) if enabled