mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 11:21:58 +01:00
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)
|
||||
{
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user