From 96f814ea20b6ba5932bf635e6a78b5e7a2e68597 Mon Sep 17 00:00:00 2001 From: Kudlaty Date: Sat, 25 Jul 2009 21:14:41 +0200 Subject: [PATCH] Fix the bug that players always gain one point less of reputation than the real value. --HG-- branch : trunk --- src/game/ReputationMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/ReputationMgr.cpp b/src/game/ReputationMgr.cpp index 10b7bbd3d62..8e6aa511d21 100644 --- a/src/game/ReputationMgr.cpp +++ b/src/game/ReputationMgr.cpp @@ -255,7 +255,7 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in if(incremental) { // int32 *= float cause one point loss? - standing = (int32)((float)standing * sWorld.getRate(RATE_REPUTATION_GAIN) + 0.5f); + standing = roundf( (float)standing * sWorld.getRate(RATE_REPUTATION_GAIN) ); standing += itr->second.Standing + BaseRep; }