diff options
author | Nay <dnpd.dd@gmail.com> | 2012-08-18 21:08:21 +0100 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2012-08-18 21:08:21 +0100 |
commit | 6c14a51fe4e44c0ef3eedeba655fa854a8469bfa (patch) | |
tree | c608140d7c784bccc58af20d64d69e19a9376e01 /src/server/game/Quests/QuestDef.cpp | |
parent | 1939f6d4485b33e669753519d58b0070f3447af8 (diff) |
Core/Quests: Split Flags and SpecialFlags
Diffstat (limited to 'src/server/game/Quests/QuestDef.cpp')
-rwxr-xr-x | src/server/game/Quests/QuestDef.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/server/game/Quests/QuestDef.cpp b/src/server/game/Quests/QuestDef.cpp index f259d57d839..c694e964e20 100755 --- a/src/server/game/Quests/QuestDef.cpp +++ b/src/server/game/Quests/QuestDef.cpp @@ -61,7 +61,7 @@ Quest::Quest(Field* questRecord) SourceItemIdCount = questRecord[35].GetUInt8(); SourceSpellid = questRecord[36].GetUInt32(); Flags = questRecord[37].GetUInt32(); - uint32 SpecialFlags = questRecord[38].GetUInt8(); + SpecialFlags = questRecord[38].GetUInt8(); MinimapTargetMark = questRecord[39].GetUInt8(); RewardTitleId = questRecord[40].GetUInt8(); RequiredPlayerKills = questRecord[41].GetUInt8(); @@ -171,8 +171,7 @@ Quest::Quest(Field* questRecord) // int32 WDBVerified = questRecord[174].GetInt32(); - Flags |= SpecialFlags << 20; - if (Flags & QUEST_TRINITY_FLAGS_AUTO_ACCEPT) + if (SpecialFlags & QUEST_SPECIAL_FLAGS_AUTO_ACCEPT) Flags |= QUEST_FLAGS_AUTO_ACCEPT; m_reqItemsCount = 0; @@ -182,27 +181,27 @@ Quest::Quest(Field* questRecord) m_rewCurrencyCount = 0; m_reqCurrencyCount = 0; - for (int i=0; i < QUEST_ITEM_OBJECTIVES_COUNT; ++i) + for (int i = 0; i < QUEST_ITEM_OBJECTIVES_COUNT; ++i) if (RequiredItemId[i]) ++m_reqItemsCount; - for (int i=0; i < QUEST_OBJECTIVES_COUNT; ++i) + for (int i = 0; i < QUEST_OBJECTIVES_COUNT; ++i) if (RequiredNpcOrGo[i]) ++m_reqNpcOrGoCount; - for (int i=0; i < QUEST_REWARDS_COUNT; ++i) + for (int i = 0; i < QUEST_REWARDS_COUNT; ++i) if (RewardItemId[i]) ++m_rewItemsCount; - for (int i=0; i < QUEST_REWARD_CHOICES_COUNT; ++i) + for (int i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i) if (RewardChoiceItemId[i]) ++m_rewChoiceItemsCount; - for (int i=0; i < QUEST_REWARD_CURRENCY_COUNT; ++i) + for (int i = 0; i < QUEST_REWARD_CURRENCY_COUNT; ++i) if (RewardCurrencyId[i]) ++m_rewCurrencyCount; - for (int i=0; i < QUEST_REQUIRED_CURRENCY_COUNT; ++i) + for (int i = 0; i < QUEST_REQUIRED_CURRENCY_COUNT; ++i) if (RequiredCurrencyId[i]) ++m_reqCurrencyCount; |