mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
This commit is contained in:
@@ -41,14 +41,14 @@ BattlefieldWG::~BattlefieldWG()
|
||||
|
||||
bool BattlefieldWG::SetupBattlefield()
|
||||
{
|
||||
InitStalker(BATTLEFIELD_WG_NPC_STALKER, WintergraspStalkerPos[0], WintergraspStalkerPos[1], WintergraspStalkerPos[2], WintergraspStalkerPos[3]);
|
||||
|
||||
m_TypeId = BATTLEFIELD_WG; // See enum BattlefieldTypes
|
||||
m_BattleId = BATTLEFIELD_BATTLEID_WG;
|
||||
m_ZoneId = BATTLEFIELD_WG_ZONEID;
|
||||
m_MapId = BATTLEFIELD_WG_MAPID;
|
||||
m_Map = sMapMgr->FindMap(m_MapId, 0);
|
||||
|
||||
InitStalker(BATTLEFIELD_WG_NPC_STALKER, WintergraspStalkerPos[0], WintergraspStalkerPos[1], WintergraspStalkerPos[2], WintergraspStalkerPos[3]);
|
||||
|
||||
m_MaxPlayer = sWorld->getIntConfig(CONFIG_WINTERGRASP_PLR_MAX);
|
||||
m_IsEnabled = sWorld->getBoolConfig(CONFIG_WINTERGRASP_ENABLE);
|
||||
m_MinPlayer = sWorld->getIntConfig(CONFIG_WINTERGRASP_PLR_MIN);
|
||||
|
||||
@@ -119,6 +119,9 @@ bool Map::ExistVMap(uint32 mapid, int gx, int gy)
|
||||
|
||||
void Map::LoadMMap(int gx, int gy)
|
||||
{
|
||||
if (!MMAP::MMapFactory::IsPathfindingEnabled(GetId()))
|
||||
return;
|
||||
|
||||
bool mmapLoadResult = MMAP::MMapFactory::createOrGetMMapManager()->loadMap((sWorld->GetDataPath() + "mmaps").c_str(), GetId(), gx, gy);
|
||||
|
||||
if (mmapLoadResult)
|
||||
@@ -129,6 +132,8 @@ void Map::LoadMMap(int gx, int gy)
|
||||
|
||||
void Map::LoadVMap(int gx, int gy)
|
||||
{
|
||||
if (!VMAP::VMapFactory::createOrGetVMapManager()->isMapLoadingEnabled())
|
||||
return;
|
||||
// x and y are swapped !!
|
||||
int vmapLoadResult = VMAP::VMapFactory::createOrGetVMapManager()->loadMap((sWorld->GetDataPath()+ "vmaps").c_str(), GetId(), gx, gy);
|
||||
switch (vmapLoadResult)
|
||||
|
||||
@@ -159,7 +159,7 @@ class instance_magisters_terrace : public InstanceMapScript
|
||||
switch (type)
|
||||
{
|
||||
case DATA_DELRISSA:
|
||||
if (type == IN_PROGRESS)
|
||||
if (state == IN_PROGRESS)
|
||||
DelrissaDeathCount = 0;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user