mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core: Fix build
This commit is contained in:
@@ -884,7 +884,8 @@ void AuraEffect::CalculatePeriodic(Unit* caster, bool create, bool load)
|
||||
else if ((caster->HasAuraTypeWithAffectMask(SPELL_AURA_PERIODIC_HASTE, m_spellInfo) || m_spellInfo->AttributesEx5 & SPELL_ATTR5_HASTE_AFFECT_DURATION) && caster->GetFloatValue(UNIT_MOD_CAST_SPEED) != 1.0f)
|
||||
{
|
||||
// Calculate number of ticks we must have
|
||||
float ticks = roundf(GetBase()->GetDuration() / (m_amplitude / (1.0f + (1.0f - caster->GetFloatValue(UNIT_MOD_CAST_SPEED)))));
|
||||
float ticks = GetBase()->GetDuration() / (m_amplitude / (1.0f + (1.0f - caster->GetFloatValue(UNIT_MOD_CAST_SPEED))));
|
||||
ticks = 0.5f + (float)(int)ticks; // round
|
||||
|
||||
m_amplitude = GetBase()->GetDuration() / int32(ticks);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,6 @@ class Log
|
||||
void outWarn(LogFilterType f, char const* str, ...) ATTR_PRINTF(3,4);
|
||||
void outError(LogFilterType f, char const* str, ...) ATTR_PRINTF(3,4);
|
||||
void outFatal(LogFilterType f, char const* str, ...) ATTR_PRINTF(3,4);
|
||||
void outOpCode(uint32 op, const char* name, bool smsg);
|
||||
|
||||
void EnableDBAppenders();
|
||||
void outCommand(uint32 account, const char * str, ...) ATTR_PRINTF(3, 4);
|
||||
|
||||
Reference in New Issue
Block a user