Make Deeprum tram active on server start and remain active

* Also added code to display the transports as tram cars for deeprun map(369)
This commit is contained in:
Antz 2020-12-19 21:56:29 +00:00
parent 78d3056512
commit 6cb19ad0a8
2 changed files with 13 additions and 4 deletions

View File

@ -432,7 +432,7 @@ BattleGroundMap* MapManager::CreateBattleGroundMap(uint32 id, uint32 InstanceId,
void MapManager::LoadContinents()
{
uint32 continents[] = {0, 1};
uint32 continents[] = {0, 1, 369};
Map* _map = NULL;
for (uint8 i = 0; i < countof(continents); ++i)

View File

@ -54,15 +54,23 @@ void Map::LoadLocalTransports()
delete lt;
}
}
/*
sLog.outString();
/*
for (std::set<Transport*>::const_iterator i = i_transports.begin(); i != i_transports.end(); ++i)
{
sLog.outString(">>>%s initialized", (*i)->GetGuidStr().c_str());
}
*/
sLog.outString(">> Loaded " SIZEFMTD " local transports for map %u", i_transports.size(), GetId());
if (GetId()==369)
{
sLog.outString(">> Loaded " SIZEFMTD " tram cars for map %u", i_transports.size(), GetId());
}
else
{
sLog.outString(">> Loaded " SIZEFMTD " local transports for map %u", i_transports.size(), GetId());
}
}
void MapManager::LoadTransports()
@ -291,10 +299,11 @@ bool GlobalTransport::Initialize(uint32 entry, uint32 period, std::string const&
// no global transports in dungeons
const MapEntry* pMapInfo = sMapStore.LookupEntry(mapid);
if (!pMapInfo || pMapInfo->Instanceable())
/* if (!pMapInfo || pMapInfo->Instanceable())
{
return false;
}
*/
Map* m = sMapMgr.CreateMap(mapid, this);
if (m == NULL)
{