1
0

Fixed various MSVC warnings.

This commit is contained in:
Mattes D
2020-05-06 09:24:39 +02:00
committed by peterbell10
parent 57952505e5
commit bdb8830b9c
4 changed files with 3 additions and 5 deletions

View File

@@ -282,7 +282,7 @@ void cEntity::TakeDamage(cEntity & a_Attacker)
void cEntity::TakeDamage(eDamageType a_DamageType, cEntity * a_Attacker, int a_RawDamage, double a_KnockbackAmount)
{
float FinalDamage = a_RawDamage;
float FinalDamage = static_cast<float>(a_RawDamage);
float ArmorCover = GetArmorCoverAgainst(a_Attacker, a_DamageType, a_RawDamage);
ApplyArmorDamage(static_cast<int>(ArmorCover));