From 3fc7c8cf95e0c0af3ec6caa9eeea416c62a57096 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sat, 5 Dec 2009 19:59:27 +0100 Subject: Remove hack added in 6413. Fixes crash. --HG-- branch : trunk --- src/game/Group.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') 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); } } -- cgit v1.2.3