1
0

There's no "round" function in MSVC2008.

This commit is contained in:
madmaxoft
2014-05-18 22:49:27 +02:00
parent e09a04a23a
commit a651c865e4
2 changed files with 4 additions and 4 deletions

View File

@@ -321,7 +321,7 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI)
m_World->BroadcastEntityAnimation(*this, 4); // Critical hit
}
Player->GetStatManager().AddValue(statDamageDealt, round(a_TDI.FinalDamage * 10));
Player->GetStatManager().AddValue(statDamageDealt, (StatValue)floor(a_TDI.FinalDamage * 10 + 0.5));
}
m_Health -= (short)a_TDI.FinalDamage;