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

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-07 16:23:03 -05:00
parent b10b651096
commit f58dadb738

View File

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