diff options
author | silinoron <none@none> | 2010-08-22 12:39:39 -0700 |
---|---|---|
committer | silinoron <none@none> | 2010-08-22 12:39:39 -0700 |
commit | 5cbae843d58431237a270a0960a5d0c324d5cb1e (patch) | |
tree | edac1313ed45bb5ae3a6375043ef6b08d6490bf6 /src/server/game/Reputation/ReputationMgr.cpp | |
parent | 399e35f8f53aeabcda8af513a37bb855340663e5 (diff) |
Core/Game: fix all warnings related to converting doubles and floats.
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Reputation/ReputationMgr.cpp')
-rw-r--r-- | src/server/game/Reputation/ReputationMgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Reputation/ReputationMgr.cpp b/src/server/game/Reputation/ReputationMgr.cpp index 7162deb4b03..ac23df83336 100644 --- a/src/server/game/Reputation/ReputationMgr.cpp +++ b/src/server/game/Reputation/ReputationMgr.cpp @@ -291,7 +291,7 @@ bool ReputationMgr::SetReputation(FactionEntry const* factionEntry, int32 standi if (m_player->GetReputationRank(repTemplate->faction[i]) <= ReputationRank(repTemplate->faction_rank[i])) { // bonuses are already given, so just modify standing by rate - int32 spilloverRep = standing * repTemplate->faction_rate[i]; + int32 spilloverRep = int32(standing * repTemplate->faction_rate[i]); SetOneFactionReputation(sFactionStore.LookupEntry(repTemplate->faction[i]), spilloverRep, incremental); } } @@ -318,7 +318,7 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in if (incremental) { // int32 *= float cause one point loss? - standing = floor((float)standing * sWorld.getRate(RATE_REPUTATION_GAIN) + 0.5); + standing = int32(floor((float)standing * sWorld.getRate(RATE_REPUTATION_GAIN) + 0.5)); standing += itr->second.Standing + BaseRep; } |