[7289] Make quest related check work in case absent English localization in DB. Author: GriffonHeart

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-17 14:46:12 -06:00
parent 4a3c0594e7
commit 1c894bee91
2 changed files with 10 additions and 11 deletions
+9 -10
View File
@@ -698,16 +698,8 @@ void PlayerMenu::SendQuestGiverRequestItems( Quest const *pQuest, uint64 npcGUID
// We can always call to RequestItems, but this packet only goes out if there are actually
// items. Otherwise, we'll skip straight to the OfferReward
// We may wish a better check, perhaps checking the real quest requirements
if (pQuest->GetRequestItemsText().empty())
{
SendQuestGiverOfferReward(pQuest, npcGUID, true);
return;
}
std::string Title,RequestItemsText;
Title = pQuest->GetTitle();
RequestItemsText = pQuest->GetRequestItemsText();
std::string Title = pQuest->GetTitle();
std::string RequestItemsText = pQuest->GetRequestItemsText();
int loc_idx = pSession->GetSessionDbLocaleIndex();
if (loc_idx >= 0)
@@ -722,6 +714,13 @@ void PlayerMenu::SendQuestGiverRequestItems( Quest const *pQuest, uint64 npcGUID
}
}
// We may wish a better check, perhaps checking the real quest requirements
if (RequestItemsText.empty())
{
SendQuestGiverOfferReward(pQuest, npcGUID, true);
return;
}
WorldPacket data( SMSG_QUESTGIVER_REQUEST_ITEMS, 50 ); // guess size
data << npcGUID;
data << pQuest->GetQuestId();
+1 -1
View File
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7288"
#define REVISION_NR "7289"
#endif // __REVISION_NR_H__