diff options
author | Kudlaty <none@none> | 2009-07-18 16:50:35 +0200 |
---|---|---|
committer | Kudlaty <none@none> | 2009-07-18 16:50:35 +0200 |
commit | 0e61bfcf82e125396180410581f6e9843fc3a070 (patch) | |
tree | f7cb8363759175138b178852ad155170238f5f3b /src/game/ReputationMgr.cpp | |
parent | 9126cd99d201a69d6aee734468df47f39ab1f53f (diff) |
Change floor() to faster (int32) in reputation calc
--HG--
branch : trunk
Diffstat (limited to 'src/game/ReputationMgr.cpp')
-rw-r--r-- | src/game/ReputationMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/ReputationMgr.cpp b/src/game/ReputationMgr.cpp index d56d17cdb78..10b7bbd3d62 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 = floor((float)standing * sWorld.getRate(RATE_REPUTATION_GAIN) + 0.5f); + standing = (int32)((float)standing * sWorld.getRate(RATE_REPUTATION_GAIN) + 0.5f); standing += itr->second.Standing + BaseRep; } |