Strip QUEST_FLAGS_AUTO_ACCEPT from quest details sent to client if ignoring auto-accepts in config

(cherry-picked from 7a245c4b69)
This commit is contained in:
Alan Deutscher
2017-01-07 04:03:24 -08:00
committed by Shauren
parent 77150bc8ec
commit df7c048fe6

View File

@@ -441,7 +441,7 @@ void PlayerMenu::SendQuestGiverQuestDetails(Quest const* quest, ObjectGuid npcGU
packet.PortraitTurnIn = quest->GetQuestTurnInPortrait();
packet.AutoLaunched = autoLaunched;
packet.DisplayPopup = displayPopup;
packet.QuestFlags[0] = quest->GetFlags();
packet.QuestFlags[0] = quest->GetFlags() & (sWorld->getBoolConfig(CONFIG_QUEST_IGNORE_AUTO_ACCEPT) ? ~QUEST_FLAGS_AUTO_ACCEPT : ~0);
packet.QuestFlags[1] = quest->GetFlagsEx();
packet.SuggestedPartyMembers = quest->GetSuggestedPlayers();