Fix the bug that players always gain one point less of reputation than the real value.

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-07-25 21:14:41 +02:00
parent c2f5b67a40
commit 96f814ea20

View File

@@ -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;
}