From f58dadb738f71cdc9cfb71d5318f5c825f2d360d Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 7 Jun 2009 16:23:03 -0500 Subject: *Fix the bug that players always gain one point less of reputation than the real value. --HG-- branch : trunk --- src/game/ReputationMgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/ReputationMgr.cpp b/src/game/ReputationMgr.cpp index 5b42e616ac7..ee7ca8d44a4 100644 --- a/src/game/ReputationMgr.cpp +++ b/src/game/ReputationMgr.cpp @@ -254,7 +254,8 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in if(incremental) { - standing *= sWorld.getRate(RATE_REPUTATION_GAIN); //multiply gain by config rate + // int32 *= float cause one point loss? + standing = (int32)((float)standing * sWorld.getRate(RATE_REPUTATION_GAIN)); standing += itr->second.Standing + BaseRep; } -- cgit v1.2.3