Skip to content

Commit

Permalink
Core/Dungeon Finder: Corrections to 8622d49 (Fix teleport coors loading)
Browse files Browse the repository at this point in the history
  • Loading branch information
xurxogr committed Oct 22, 2012
1 parent 1e50a08 commit 316fc7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/server/game/DungeonFinding/LFGMgr.cpp
Expand Up @@ -318,11 +318,9 @@ void LFGMgr::LoadLFGDungeons(bool reload /* = false */)
for (LFGDungeonMap::iterator itr = m_LfgDungeonMap.begin(); itr != m_LfgDungeonMap.end(); ++itr)
{
LFGDungeonData& dungeon = itr->second;
if (dungeon.type == LFG_TYPE_RANDOM)
continue;

// No teleport coords in database, load from areatriggers
if (dungeon.x == 0.0f && dungeon.y == 0.0f && dungeon.z == 0.0f)
if (dungeon.type != LFG_TYPE_RANDOM && dungeon.x == 0.0f && dungeon.y == 0.0f && dungeon.z == 0.0f)
{
AreaTrigger const* at = sObjectMgr->GetMapEntranceTrigger(dungeon.map);
if (!at)
Expand Down Expand Up @@ -401,7 +399,9 @@ void LFGMgr::Update(uint32 diff)
uint64 pguid = itVotes->first;
if (pguid != boot.victim)
SendLfgBootProposalUpdate(pguid, boot);
SetState(pguid, LFG_STATE_DUNGEON);
}
SetState(itBoot->first, LFG_STATE_DUNGEON);
m_Boots.erase(itBoot);
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/server/game/DungeonFinding/LFGMgr.h
Expand Up @@ -358,14 +358,12 @@ class LFGMgr
void LoadLFGDungeons(bool reload = false);
LFGDungeonData const* GetLFGDungeon(uint32 id);
LFGDungeonMap& GetLFGDungeonMap();

void ClearState(uint64 guid, char const *debugMsg);
private:

uint8 GetTeam(uint64 guid);
uint64 GetGroup(uint64 guid);
void RestoreState(uint64 guid, char const *debugMsg);

void ClearState(uint64 guid, char const *debugMsg);
void SetDungeon(uint64 guid, uint32 dungeon);
void SetLockedDungeons(uint64 guid, LfgLockMap const& lock);
void DecreaseKicksLeft(uint64 guid);
Expand Down

0 comments on commit 316fc7c

Please sign in to comment.