*Update heal calculation formula for Death Strike and apply improved death strike bonus if avalible

*Use floor() function for rounding in rep gain calculation
*Add some debug info to WorldSession::HandleMoveWorldportAckOpcode()

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-18 15:00:36 +02:00
parent 7b1a842041
commit 8499812eb6
3 changed files with 17 additions and 5 deletions

View File

@@ -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));
standing = floor((float)standing * sWorld.getRate(RATE_REPUTATION_GAIN) + 0.5f);
standing += itr->second.Standing + BaseRep;
}