Fix the bug that players always gain one point less of reputation than the real value.
--HG-- branch : trunk
This commit is contained in:
@@ -255,7 +255,7 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in
|
|||||||
if(incremental)
|
if(incremental)
|
||||||
{
|
{
|
||||||
// int32 *= float cause one point loss?
|
// 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;
|
standing += itr->second.Standing + BaseRep;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user