Core/Misc: Fix linux build

This commit is contained in:
jackpoz
2020-04-11 11:45:44 +02:00
parent 9c9f4d6d20
commit eb31ae9b18

View File

@@ -1610,7 +1610,7 @@ void Unit::HandleEmoteCommand(uint32 emoteId)
damageReduction /= (1.0f + damageReduction);
RoundToInterval(damageReduction, 0.f, 0.75f);
return uint32(std::ceilf(std::max(damage * (1.0f - damageReduction), 0.0f)));
return uint32(std::ceil(std::max(damage * (1.0f - damageReduction), 0.0f)));
}
/*static*/ uint32 Unit::CalcSpellResistedDamage(Unit const* attacker, Unit* victim, uint32 damage, SpellSchoolMask schoolMask, SpellInfo const* spellInfo)