From 68c3039715d8b68aa1b33a44bae3dd5d59eb5e5f Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 26 Mar 2009 13:53:32 -0600 Subject: *Move most reputation/force faction reaction code to new ReputationMgr. Author: VladimirMangos --HG-- branch : trunk --- src/game/Level3.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/game/Level3.cpp') 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 -- cgit v1.2.3