diff options
author | megamage <none@none> | 2009-06-07 16:23:03 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-07 16:23:03 -0500 |
commit | f58dadb738f71cdc9cfb71d5318f5c825f2d360d (patch) | |
tree | 0589065e220c2479f2f46ee32ade9fd11fe54a68 | |
parent | b10b65109670efa3e5f967543775c5ab8726f47c (diff) |
*Fix the bug that players always gain one point less of reputation than the real value.
--HG--
branch : trunk
-rw-r--r-- | src/game/ReputationMgr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |