From 1c1bc92d5458056b0995cb2fc122c35348ede5b4 Mon Sep 17 00:00:00 2001 From: tomrus88 Date: Mon, 3 Nov 2008 15:24:27 +0300 Subject: [PATCH] Compile fix --- src/game/Player.cpp | 2 +- src/game/QuestHandler.cpp | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 4c6a4af35..082069e0e 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -13393,7 +13393,7 @@ void Player::SendQuestReward( Quest const *pQuest, uint32 XP, Object * questGive data << uint32(pQuest->GetRewOrReqMoney() + int32(pQuest->GetRewMoneyMaxLevel() * sWorld.getRate(RATE_DROP_MONEY))); } - data << uint32(10*MaNGOS::Honor::hk_honor_at_level(pSession->GetPlayer()->getLevel(), pQuest->GetRewHonorableKills())); + data << uint32(10*MaNGOS::Honor::hk_honor_at_level(getLevel(), pQuest->GetRewHonorableKills())); data << uint32(pQuest->GetBonusTalents()); // bonus talents GetSession()->SendPacket( &data ); diff --git a/src/game/QuestHandler.cpp b/src/game/QuestHandler.cpp index 5b68829ab..bbb3fa764 100644 --- a/src/game/QuestHandler.cpp +++ b/src/game/QuestHandler.cpp @@ -441,12 +441,6 @@ void WorldSession::HandleQuestPushToParty(WorldPacket& recvPacket) _player->SendPushToPartyResponse(pPlayer, QUEST_PARTY_MSG_SHARING_QUEST); - if( _player->GetDistance( pPlayer ) > 10 ) - { - _player->SendPushToPartyResponse( pPlayer, QUEST_PARTY_MSG_TOO_FAR ); - continue; - } - if( !pPlayer->SatisfyQuestStatus( pQuest, false ) ) { _player->SendPushToPartyResponse( pPlayer, QUEST_PARTY_MSG_HAVE_QUEST );