Core/Misc: Added 'f' after float values

This commit is contained in:
Fredi Machado
2011-10-17 07:38:27 -03:00
parent 04bb2f4a17
commit 97142102e0
17 changed files with 52 additions and 48 deletions

View File

@@ -358,7 +358,7 @@ bool ReputationMgr::SetOneFactionReputation(FactionEntry const* factionEntry, in
if (incremental)
{
// int32 *= float cause one point loss?
standing = int32(floor((float)standing * sWorld->getRate(RATE_REPUTATION_GAIN) + 0.5));
standing = int32(floor((float)standing * sWorld->getRate(RATE_REPUTATION_GAIN) + 0.5f));
standing += itr->second.Standing + BaseRep;
}