diff options
author | madmaxoft <github@xoft.cz> | 2014-09-01 14:29:13 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-09-01 14:29:13 +0200 |
commit | f22f67a63ced1e99abafd09026b1b4955fb3664e (patch) | |
tree | 5d57f0ec8984013125e08cd9830b2d1d5f7449df | |
parent | Merge remote-tracking branch 'Hircine/Enchantments' (diff) | |
download | cuberite-f22f67a63ced1e99abafd09026b1b4955fb3664e.tar cuberite-f22f67a63ced1e99abafd09026b1b4955fb3664e.tar.gz cuberite-f22f67a63ced1e99abafd09026b1b4955fb3664e.tar.bz2 cuberite-f22f67a63ced1e99abafd09026b1b4955fb3664e.tar.lz cuberite-f22f67a63ced1e99abafd09026b1b4955fb3664e.tar.xz cuberite-f22f67a63ced1e99abafd09026b1b4955fb3664e.tar.zst cuberite-f22f67a63ced1e99abafd09026b1b4955fb3664e.zip |
-rw-r--r-- | src/Entities/ArrowEntity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/ArrowEntity.cpp b/src/Entities/ArrowEntity.cpp index c3e7c5d79..954e0a267 100644 --- a/src/Entities/ArrowEntity.cpp +++ b/src/Entities/ArrowEntity.cpp @@ -114,8 +114,8 @@ void cArrowEntity::OnHitEntity(cEntity & a_EntityHit, const Vector3d & a_HitPos) int PowerLevel = m_CreatorData.m_Enchantments.GetLevel(cEnchantments::enchPower); if (PowerLevel > 0) { - int ExtraDamage = 0.25 * (PowerLevel + 1); - Damage += ceil(ExtraDamage); + int ExtraDamage = (int)ceil(0.25 * (PowerLevel + 1)); + Damage += ExtraDamage; } int KnockbackAmount = 1; |