aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKudlaty <none@none>2009-11-26 23:44:33 +0100
committerKudlaty <none@none>2009-11-26 23:44:33 +0100
commit5a27028d2b2eb6f47c31d8092e5f954893359ca5 (patch)
tree7ad035eb21b3f5913f185d37a027fe2b71eaa25f /src
parent84e69715f78f577b029d12649fc0732c469fa00b (diff)
Fix some typos about questlevel -1.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/GossipDef.cpp2
-rw-r--r--src/game/Player.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game/GossipDef.cpp b/src/game/GossipDef.cpp
index e6458b8fee7..418f27dc4ea 100644
--- a/src/game/GossipDef.cpp
+++ b/src/game/GossipDef.cpp
@@ -549,7 +549,7 @@ void PlayerMenu::SendQuestQueryResponse( Quest const *pQuest )
data << uint32(pQuest->GetQuestId());
data << uint32(pQuest->GetQuestMethod()); // Accepted values: 0, 1 or 2. 0==IsAutoComplete() (skip objectives/details)
- data << uint32(pQuest->GetQuestLevel()); // may be 0, static data, in other cases must be used dynamic level: Player::GetQuestLevel
+ data << uint32(pQuest->GetQuestLevel()); // may be -1, static data, in other cases must be used dynamic level: Player::GetQuestLevel (0 is not known, but assuming this is no longer valid for quest intended for client)
data << uint32(pQuest->GetZoneOrSort()); // zone or sort to display in quest log
data << uint32(pQuest->GetType());
diff --git a/src/game/Player.h b/src/game/Player.h
index 61445d650ee..c6bb9d64c0d 100644
--- a/src/game/Player.h
+++ b/src/game/Player.h
@@ -1211,7 +1211,7 @@ class MANGOS_DLL_SPEC Player : public Unit
/*** QUEST SYSTEM ***/
/*********************************************************/
- int32 GetQuestLevel( Quest const* pQuest ) const { return pQuest && pQuest->GetQuestLevel() ? pQuest->GetQuestLevel() : getLevel(); }
+ int32 GetQuestLevel( Quest const* pQuest ) const { return pQuest && (pQuest->GetQuestLevel() > 0) ? pQuest->GetQuestLevel() : getLevel(); }
void PrepareQuestMenu( uint64 guid );
void SendPreparedQuest( uint64 guid );