Core/Spells: Fix two signed / unsigned warnings from f8a13b401d

This commit is contained in:
kaelima
2011-12-22 13:22:18 +01:00
parent f8a13b401d
commit ff2dbfc381

View File

@@ -3485,7 +3485,7 @@ void Spell::update(uint32 difftime)
{
if (m_timer)
{
if (difftime >= m_timer)
if (difftime >= (uint32)m_timer)
m_timer = 0;
else
m_timer -= difftime;
@@ -3494,7 +3494,8 @@ void Spell::update(uint32 difftime)
if (m_timer == 0 && !IsNextMeleeSwingSpell() && !IsAutoRepeat())
// don't CheckCast for instant spells - done in spell::prepare, skip duplicate checks, needed for range checks for example
cast(!m_casttime);
} break;
break;
}
case SPELL_STATE_CASTING:
{
if (m_timer > 0)
@@ -3507,7 +3508,7 @@ void Spell::update(uint32 difftime)
finish();
}
if (difftime >= m_timer)
if (difftime >= (uint32)m_timer)
m_timer = 0;
else
m_timer -= difftime;
@@ -3552,10 +3553,10 @@ void Spell::update(uint32 difftime)
finish();
}
} break;
break;
}
default:
{
}break;
break;
}
}