Change floor() to faster (int32) in reputation calc

--HG--
branch : trunk
This commit is contained in:
Kudlaty
2009-07-18 16:50:35 +02:00
parent 9126cd99d2
commit 0e61bfcf82

View File

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