aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-26 13:53:32 -0600
committermegamage <none@none>2009-03-26 13:53:32 -0600
commit68c3039715d8b68aa1b33a44bae3dd5d59eb5e5f (patch)
tree1eb657d76ea97fc08dff54f9eea59dc976c4136a /src/game/Level3.cpp
parentbdafaf41134a26818d81ad1ffe853f6013635c4c (diff)
*Move most reputation/force faction reaction code to new ReputationMgr. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index 13ea1a33ff3..6a9c9103910 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -5594,12 +5594,10 @@ bool ChatHandler::HandleQuestComplete(const char* args)
if(uint32 repFaction = pQuest->GetRepObjectiveFaction())
{
uint32 repValue = pQuest->GetRepObjectiveValue();
- uint32 curRep = player->GetReputation(repFaction);
+ uint32 curRep = player->GetReputationMgr().GetReputation(repFaction);
if(curRep < repValue)
- {
- FactionEntry const *factionEntry = sFactionStore.LookupEntry(repFaction);
- player->SetFactionReputation(factionEntry,repValue);
- }
+ if(FactionEntry const *factionEntry = sFactionStore.LookupEntry(repFaction))
+ player->GetReputationMgr().SetReputation(factionEntry,repValue);
}
// If the quest requires money