aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKudlaty <none@none>2009-07-25 21:14:41 +0200
committerKudlaty <none@none>2009-07-25 21:14:41 +0200
commit96f814ea20b6ba5932bf635e6a78b5e7a2e68597 (patch)
tree167b1f52c1b5b957835f9a87ecd8ce5ed9100a6d /src
parentc2f5b67a40c59d42b4d30d27cd3632336a19acab (diff)
Fix the bug that players always gain one point less of reputation than the real value.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/ReputationMgr.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}