Skip to content
Permalink
Browse files

Server/Misc: Fix Static Analysis issue.

Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information...
AriDEV committed Jun 4, 2019
1 parent 74e60da commit 57655b82dd087afd3fed499dda8d130fcdeffe86
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/server/game/Reputation/ReputationMgr.cpp
@@ -376,13 +376,14 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in
if (itr != _factions.end())
{
int32 BaseRep = GetBaseReputation(factionEntry);
float bonusLFG = sWorld->getRate(RATE_REPUTATION_LFG_BONUS);

if (factionEntry->ID != 0 || factionEntry->ID == _player->GetUInt32Value(PLAYER_FIELD_LFG_BONUS_FACTION_ID))
float bonusLFG = sWorld->getRate(RATE_REPUTATION_LFG_BONUS) * 2.0f;

if (incremental)
{
float bonusLFG = sWorld->getRate(RATE_REPUTATION_LFG_BONUS);

if (factionEntry->ID != 0 || factionEntry->ID == _player->GetUInt32Value(PLAYER_FIELD_LFG_BONUS_FACTION_ID))
float bonusLFG = sWorld->getRate(RATE_REPUTATION_LFG_BONUS) * 2.0f;

// int32 *= float cause one point loss?
standing = int32(floor(((float)standing * sWorld->getRate(RATE_REPUTATION_GAIN) + 0.5f) * bonusLFG));
standing += itr->second.Standing + BaseRep;

0 comments on commit 57655b8

Please sign in to comment.
You can’t perform that action at this time.