diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-07-20 13:27:04 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-07-20 13:27:04 +0200 |
commit | e405ac5f4100cf9e544b80cf4503b107ecee8d50 (patch) | |
tree | 155db121e093b757a215698639393841bbacb8f2 /src/server/game/Reputation/ReputationMgr.cpp | |
parent | 420d096b6a477856979e2810a8f68d38cbce3349 (diff) |
Fixed nopch build and some leftover warnings
Diffstat (limited to 'src/server/game/Reputation/ReputationMgr.cpp')
-rw-r--r-- | src/server/game/Reputation/ReputationMgr.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/server/game/Reputation/ReputationMgr.cpp b/src/server/game/Reputation/ReputationMgr.cpp index 46ceb14df3d..0a191b5f3f1 100644 --- a/src/server/game/Reputation/ReputationMgr.cpp +++ b/src/server/game/Reputation/ReputationMgr.cpp @@ -45,6 +45,11 @@ ReputationRank ReputationMgr::ReputationToRank(int32 standing) return MIN_REPUTATION_RANK; } +FactionState const* ReputationMgr::GetState(FactionEntry const* factionEntry) const +{ + return factionEntry->CanHaveReputation() ? GetState(factionEntry->ReputationIndex) : NULL; +} + bool ReputationMgr::IsAtWar(uint32 faction_id) const { FactionEntry const* factionEntry = sFactionStore.LookupEntry(faction_id); @@ -127,6 +132,11 @@ ReputationRank ReputationMgr::GetBaseRank(FactionEntry const* factionEntry) cons return ReputationToRank(reputation); } +ReputationRank const* ReputationMgr::GetForcedRankIfAny(FactionTemplateEntry const* factionTemplateEntry) const +{ + return GetForcedRankIfAny(factionTemplateEntry->Faction); +} + void ReputationMgr::ApplyForceReaction(uint32 faction_id, ReputationRank rank, bool apply) { if (apply) |