diff options
author | Machiavelli <none@none> | 2009-12-05 19:59:27 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2009-12-05 19:59:27 +0100 |
commit | 3fc7c8cf95e0c0af3ec6caa9eeea416c62a57096 (patch) | |
tree | 6987c07f125ed67acd0efe0a10b6eba69590ae2e /src | |
parent | 7d38088860b904d53325e39a067d405143502e03 (diff) |
Remove hack added in 6413. Fixes crash.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Group.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/Group.cpp b/src/game/Group.cpp index 4657136ddf4..9face6d0e7d 100644 --- a/src/game/Group.cpp +++ b/src/game/Group.cpp @@ -1452,7 +1452,8 @@ void Roll::targetObjectBuildLink() void Group::SetDifficulty(uint8 difficulty) { m_difficulty = difficulty; - if(!isBGGroup()) CharacterDatabase.PExecute("UPDATE groups SET difficulty = %u WHERE leaderGuid ='%u'", m_difficulty, GUID_LOPART(m_leaderGuid)); + if (!isBGGroup()) + CharacterDatabase.PExecute("UPDATE groups SET difficulty = %u WHERE leaderGuid ='%u'", m_difficulty, GUID_LOPART(m_leaderGuid)); for (GroupReference *itr = GetFirstMember(); itr != NULL; itr = itr->next()) { @@ -1461,9 +1462,6 @@ void Group::SetDifficulty(uint8 difficulty) continue; player->SetDifficulty(difficulty); player->SendDungeonDifficulty(true); - //send player to recall positio nis a dungeon (to avoid an exploit) - if (sMapStore.LookupEntry(player->GetMap()->IsDungeon())) - player->TeleportTo(player->m_recallMap, player->m_recallX, player->m_recallY, player->m_recallZ, player->m_recallO); } } |