summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2020-05-06 09:24:39 +0200
committerpeterbell10 <peterbell10@live.co.uk>2020-05-06 13:53:37 +0200
commitbdb8830b9cc1a2bb3251e7649f171809b5f28ad1 (patch)
tree37ce1ebbb68462c3da7c0dd096738bcad798c31f /src/Entities/Entity.cpp
parentUpdate fmt to 6.2.0 (#4718) (diff)
downloadcuberite-bdb8830b9cc1a2bb3251e7649f171809b5f28ad1.tar
cuberite-bdb8830b9cc1a2bb3251e7649f171809b5f28ad1.tar.gz
cuberite-bdb8830b9cc1a2bb3251e7649f171809b5f28ad1.tar.bz2
cuberite-bdb8830b9cc1a2bb3251e7649f171809b5f28ad1.tar.lz
cuberite-bdb8830b9cc1a2bb3251e7649f171809b5f28ad1.tar.xz
cuberite-bdb8830b9cc1a2bb3251e7649f171809b5f28ad1.tar.zst
cuberite-bdb8830b9cc1a2bb3251e7649f171809b5f28ad1.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index 8c2b6fea8..55df8b834 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -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));