aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorLiberate <none@none>2010-05-24 21:10:48 +0200
committerLiberate <none@none>2010-05-24 21:10:48 +0200
commit09a455dcd1814e71da94aedd8f5325275a47a772 (patch)
tree747df9fa24463e5d9be6315cd81096303f8f39df /src/game/Player.cpp
parent89aebd40c9545b306955a662f0bf3766e2a2c10b (diff)
*Fix: Only show quests in the first page of gossip, instead of every page.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 5a99c66d8ee..aae3890940f 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -13257,7 +13257,7 @@ void Player::SendNewItem(Item *item, uint32 count, bool received, bool created,
/*** GOSSIP SYSTEM ***/
/*********************************************************/
-void Player::PrepareGossipMenu(WorldObject *pSource, uint32 menuId)
+void Player::PrepareGossipMenu(WorldObject *pSource, uint32 menuId, bool showQuests)
{
PlayerMenu* pMenu = PlayerTalkClass;
pMenu->ClearMenus();
@@ -13278,7 +13278,7 @@ void Player::PrepareGossipMenu(WorldObject *pSource, uint32 menuId)
{
pCreature = pSource->ToCreature();
npcflags = pCreature->GetUInt32Value(UNIT_NPC_FLAGS);
- if (npcflags & UNIT_NPC_FLAG_QUESTGIVER)
+ if (npcflags & UNIT_NPC_FLAG_QUESTGIVER && showQuests)
PrepareQuestMenu(pSource->GetGUID());
}
else if (pSource->GetTypeId() == TYPEID_GAMEOBJECT)