*Fix: Only show quests in the first page of gossip, instead of every page.

--HG--
branch : trunk
This commit is contained in:
Liberate
2010-05-24 21:10:48 +02:00
parent 89aebd40c9
commit 09a455dcd1
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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)