From a2ef7e18a18945588308c1cbfcb91e6aa7513dec Mon Sep 17 00:00:00 2001 From: Spp Date: Mon, 22 Nov 2010 10:19:54 +0100 Subject: Core/Dungeon Finder: Give rewards only to players that joined selecting random dungeon --HG-- branch : trunk --- src/server/game/DungeonFinding/LFGMgr.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/server') diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 8fb56635590..efebdff7165 100755 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -1878,10 +1878,10 @@ void LFGMgr::TeleportPlayer(Player* plr, bool out, bool fromOpcode /*= false*/) /// /// dungeonId /// player -void LFGMgr::RewardDungeonDoneFor(const uint32 dungeonId, Player* player) +void LFGMgr::RewardDungeonDoneFor(const uint32 /*dungeonId*/, Player* player) { Group* group = player->GetGroup(); - if ((!group || !group->isLFGGroup()) || !sWorld.getBoolConfig(CONFIG_DUNGEON_FINDER_ENABLE)) + if (!group || !group->isLFGGroup() || !sWorld.getBoolConfig(CONFIG_DUNGEON_FINDER_ENABLE)) return; // Mark dungeon as finished @@ -1894,7 +1894,7 @@ void LFGMgr::RewardDungeonDoneFor(const uint32 dungeonId, Player* player) player->SetLfgRoles(ROLE_NONE); // Give rewards only if its a random dungeon - LFGDungeonEntry const* dungeon = sLFGDungeonStore.LookupEntry(dungeonId); + LFGDungeonEntry const* dungeon = sLFGDungeonStore.LookupEntry(rDungeonId); if (!dungeon || dungeon->type != LFG_TYPE_RANDOM) return; @@ -1925,6 +1925,7 @@ void LFGMgr::RewardDungeonDoneFor(const uint32 dungeonId, Player* player) } // Give rewards + sLog.outDebug("LFGMgr::RewardDungeonDoneFor: [" UI64FMTD "] done dungeon %u, %s previously done.", player->GetGUID(), rDungeonId, index > 0 ? "" : "not "); player->GetSession()->SendLfgPlayerReward(dungeon->Entry(), group->GetLfgDungeonEntry(false), index, reward, qReward); } -- cgit v1.2.3