Skip to content
Permalink
Browse files

Fix visibility distance incorrectly initialized.

  • Loading branch information
cyberium committed Feb 12, 2020
1 parent f6e67b9 commit d9d5308f7f8f8b1e6ee85b57bb5f25fbf90a73f6
Showing with 1 addition and 6 deletions.
  1. +1 −6 src/game/Maps/Map.cpp
@@ -115,7 +115,7 @@ void Map::Initialize(bool loadInstanceData /*= true*/)
}

// lets initialize visibility distance for map
Map::InitVisibilityDistance();
InitVisibilityDistance();

// add reference for TerrainData object
m_TerrainData->AddRef();
@@ -1399,9 +1399,6 @@ DungeonMap::DungeonMap(uint32 id, time_t expiry, uint32 InstanceId)
{
MANGOS_ASSERT(i_mapEntry->IsDungeon());

// lets initialize visibility distance for dungeons
DungeonMap::InitVisibilityDistance();

// the timer is started by default, and stopped when the first player joins
// this make sure it gets unloaded if for some reason no player joins
m_unloadTimer = std::max(sWorld.getConfig(CONFIG_UINT32_INSTANCE_UNLOAD_DELAY), (uint32)MIN_UNLOAD_DELAY);
@@ -1678,8 +1675,6 @@ DungeonPersistentState* DungeonMap::GetPersistanceState() const
BattleGroundMap::BattleGroundMap(uint32 id, time_t expiry, uint32 InstanceId)
: Map(id, expiry, InstanceId)
{
// lets initialize visibility distance for BG
BattleGroundMap::InitVisibilityDistance();
}

BattleGroundMap::~BattleGroundMap()

0 comments on commit d9d5308

Please sign in to comment.
You can’t perform that action at this time.