aboutsummaryrefslogtreecommitdiff
path: root/src/game/ReputationMgr.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-07 16:23:03 -0500
committermegamage <none@none>2009-06-07 16:23:03 -0500
commitf58dadb738f71cdc9cfb71d5318f5c825f2d360d (patch)
tree0589065e220c2479f2f46ee32ade9fd11fe54a68 /src/game/ReputationMgr.cpp
parentb10b65109670efa3e5f967543775c5ab8726f47c (diff)
*Fix the bug that players always gain one point less of reputation than the real value.
--HG-- branch : trunk
Diffstat (limited to 'src/game/ReputationMgr.cpp')
-rw-r--r--src/game/ReputationMgr.cpp3
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;
}