mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user